Page MenuHomePhabricator

Migrate bare division math to parens-division in Less stylesheet files (in web team extensions)
Closed, ResolvedPublic2 Estimated Story Points

Description

Note: Per T368921#9981396 we'd like to get this done by mid August.

Background

The MediaWiki core team T368921 is making updates to ResourceLoader to support modern CSS. Work is needed from web team to help them succeed in that goal.

User story

As a developer I want access to modern CSS so I can build products for Wikimedia as easily as possible.

Requirements

  • MobileFrontend has been updated.
  • Minerva has been updated.
  • Vector has been updated.
  • Page previews has been updated.

BDD

  • For QA engineer to fill out === Test Steps
  • For QA engineer to fill out

Design

  • Add mockups and design requirements

Acceptance criteria

  • Add acceptance criteria

Communication criteria - does this need an announcement or discussion?

  • Add communication criteria

Rollback plan

  • What is the rollback plan in production for this task if something goes wrong?

This task was created by Version 1.0.0 of the Web team task template using phabulous

Event Timeline

Jdrewniak set the point value for this task to 2.Jul 22 2024, 5:43 PM

Change #1059138 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/Vector@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059138

Change #1059138 merged by jenkins-bot:

[mediawiki/skins/Vector@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059138

Change #1059413 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/skins/MinervaNeue@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059413

Change #1059414 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/extensions/MobileFrontend@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059414

Change #1059414 merged by jenkins-bot:

[mediawiki/extensions/MobileFrontend@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059414

Change #1059413 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059413

Change #1059911 had a related patch set uploaded (by Bernard Wang; author: Bernard Wang):

[mediawiki/extensions/Popups@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059911

bwang removed bwang as the assignee of this task.Aug 5 2024, 4:18 PM
bwang subscribed.

Change #1059911 merged by jenkins-bot:

[mediawiki/extensions/Popups@master] Migrate bare division math to parens division

https://gerrit.wikimedia.org/r/1059911

Edtadros subscribed.

@Jdlrobson, if this is verifiable by QA, please add some more information to the requirements or some test steps when it's moved into the next sprint.

Jdlrobson claimed this task.
Jdlrobson added a project: Verified.

Codesearch: Bare math slash in Less files.

There are approximately 50 files using the deprecated as of writing.

Based on the search we originally shared, there appear to still be uses of unparenthesised slash division in MobileFrontend and Minerva. For example:

MobileFrontend - resources/mobile.startup/references/ReferencesDrawer.less
	padding: @drawerPadding/2 @drawerPadding @drawerPadding @drawerPadding;
MinervaNeue - minerva.less/minerva.variables.less
@width-search-box: 375/16em;
MinervaNeue - resources/skins.minerva.base.styles/content/toc.less
	@toctitle-vertical-padding: 1.4em / 2;

Are these false positives where the code is already compatible with Less.js v5 and its new default of math=parens-division?

Are these false positives where the code is already compatible with Less.js v5 and its new default of math=parens-division?

Please confirm if Minerva and MobileFrontend are ready for Less.js v5, and thus it is okay to switch ResourceLoader to math=parens-division.

I opened T382931 to capture the new request. Let me know on that ticket the urgency and I'll make sure to get Olga to prioritize it.