Page MenuHomePhabricator

Order of ResourceLoaderSkinModule should be consistent across skins
Closed, ResolvedPublic3 Estimated Story Points

Description

Currently defining a module using ResourceLoaderSkinModule orders styles based on the order of the array keys of the features array defined via ResourceLoader.

This is unintended as it means normalize styles can be applied at the end of the stylesheet, disabling any overrides.

QA steps

in beta

in production

QA Results - Prod

ACStatusDetails
1T269618#6773391

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 646805 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/core@master] ResourceLoaderSkinModule defines the order of feature styles

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

Krinkle triaged this task as High priority.
Krinkle moved this task from Inbox, needs triage to Radar on the Performance-Team board.
Krinkle edited projects, added Performance-Team (Radar); removed Performance-Team.
Krinkle moved this task from Inbox to Confirmed Problem on the MediaWiki-ResourceLoader board.
Krinkle moved this task from Limbo to Watching on the Performance-Team (Radar) board.

Change 646805 merged by jenkins-bot:
[mediawiki/core@master] ResourceLoaderSkinModule defines the order of feature styles

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

Seems to still be a problem here - in https://en.wikipedia.beta.wmflabs.org/w/load.php?lang=en&modules=skins.monobook.styles&only=styles&skin=monobook&debug=true the @screen media query CSS is appearing above the all which is odd.

local hack-arounds added to enwiki and metawiki production in MediaWiki:Monobook.css for break of hr elements

Change 655131 had a related patch set uploaded (by Jdlrobson; owner: Jdlrobson):
[mediawiki/core@master] Feature file styles should precede module defined ones

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

The invisible hr element is also reported on nl.wp (and temporarily 'fixed' in the project's monobook.css).

The problem still exist, see https://ru.wikipedia.org/wiki/User:MBH in monobook and vector (2 horisontal lines disappear in monobook).

ovasileva set the point value for this task to 3.Jan 11 2021, 6:20 PM
phuedx moved this task from Code Review to QA on the Web-Team-Backlog (Kanbanana-FY-2020-21) board.

Change 655131 merged by jenkins-bot:
[mediawiki/core@master] Feature file styles should precede module defined ones

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

Edtadros subscribed.

Test Result - Prod

Status: ✅ PASS
Environment: testwiki
OS: macOS Big Sur
Browser: Chrome
Device: MBP
Emulated Device: NA

Test Artifact(s):

QA Steps

AC1: Confirm horizontal line is present between the two lines on https://test.wikipedia.org/wiki/Missing_hl?useskin=monobook&safemode=1

Screen Shot 2021-01-25 at 6.20.52 AM.png (233×829 px, 72 KB)

AC2: Confirm a horizontal line appears above the text "Статистика и инструменты:" in https://ru.wikipedia.org/wiki/Участник:MBH?useskin=monobook

Screen Shot 2021-01-25 at 6.21.44 AM.png (394×1 px, 194 KB)