Page MenuHomePhabricator

Special:Version table styles are being applied on other special pages
Closed, ResolvedPublicBUG REPORT

Description

The styles for Special:Version are loaded in the mediawiki.special module, which is used on a whole bunch of different special pages.

In mediawiki.special/version.less is the following:

.mw-body-content thead {
	font-size: 0.9em;
}

This is incorrectly applying the reduced font size to tables on all the special pages (of which there don't appear to be too many, so this presumably hasn't been noticed, but it's come up in T411596).


Derived Requirement

Ensure that table styling specific to *Special:Version* is scoped only to that page.
Styles defined in mediawiki.special/version.less, including reduced table header font sizes, must not affect tables on other special pages.
Other special pages must retain their default table font sizes and styling.

Test Steps

Test Case 1: Verify Special:Version table header styling is applied correctly

  1. Navigate to *Special:Version*.
  2. Locate the table displayed on the page.
  3. Inspect the table header (thead) font size visually or via browser dev tools.
  4. ✅❓❌⬜ AC1: Confirm the table header font size is reduced as intended on *Special:Version*.

Test Case 2: Verify table header styling is not applied on other special pages

  1. Navigate to another special page that contains a table (e.g. *Special:Statistics* or *Special:Preferences*).
  2. Locate a table with a header row.
  3. Inspect the table header (thead) font size.
  4. ✅❓❌⬜ AC2: Confirm the table header font size is not reduced and matches the default styling for that page.

QA Results -Beta

ACStatusDetails
1T412654#11461946
2T412654#11461946

Event Timeline

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

Change #1217884 had a related patch set uploaded (by Samwilson; author: Samwilson):

[mediawiki/core@master] SpecialVersion: More specific CSS for thead font-size

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

Change #1217884 merged by jenkins-bot:

[mediawiki/core@master] SpecialVersion: More specific CSS for thead font-size

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

@Samwilson Confirmed the table header font size is reduced as intended on *Special:Version*, as seen in the video. I will mark this as Resolved. Thanks for all your work!

Test Result - Beta

Status: ✅ PASS
Environment: Beta: 1.46.0-alpha (ebc6935) 16:02, 15 December 2025
OS: macOS Tahoe 26.1
Browser: Chrome 142
Device: MBA
Emulated Device: NA

Test Artifact(s):

Test Steps

Test Case 1: Verify Special:Version table header styling is applied correctly

  1. Navigate to *Special:Version*.
  2. Locate the table displayed on the page.
  3. Inspect the table header (thead) font size visually or via browser dev tools.
  4. ✅ AC1: Confirm the table header font size is reduced as intended on *Special:Version*.

Test Case 2: Verify table header styling is not applied on other special pages

  1. Navigate to another special page that contains a table (e.g. *Special:WatchlistLabels*).
  2. Locate a table with a header row.
  3. Inspect the table header (thead) font size.
  4. ✅ AC2: Confirm the table header font size is not reduced and matches the default styling for that page.

2025-12-15_12-41-33.png (1×1 px, 562 KB)

GMikesell-WMF updated the task description. (Show Details)
GMikesell-WMF updated Other Assignee, removed: GMikesell-WMF.