Page MenuHomePhabricator

Lists have inconsistent margin in Parsoid and legacy parser
Closed, ResolvedPublicBUG REPORT

Description

Following the improvement in T374753: Add margin top for h3s after paragraph in parsoid mobile this has led to another visual difference between Parsoid and legacy parser that wasn't present before.

Steps to replicate the issue (include links if applicable):

What happens?:

Notice the inconsistent margin in the "By train" section.
Legacy parser:

Screenshot 2026-01-07 at 5.19.33 PM.png (903×1 px, 140 KB)

Parsoid:

Screenshot 2026-01-07 at 5.22.15 PM.png (875×1 px, 136 KB)

What should have happened instead?:
The parsoid rendeirng is preferable. There should be a margin below the list in the "By train" section.

Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):

Other information (browser name/version, screenshots, etc.):

Event Timeline

Change #1224260 had a related patch set uploaded (by Jdlrobson; author: Jdlrobson):

[mediawiki/skins/MinervaNeue@master] Margins for headings in legacy parser should match parsoid for list elements

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

Change #1224260 merged by jenkins-bot:

[mediawiki/skins/MinervaNeue@master] styles: margins for headings and sibling lists in legacy parser should match Parsoid

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

Etonkovidova subscribed.

Checked & compared the article Salzburg - on beta and the current wmf. 10 production

Note: after deployment the article Hospet (as per the task description) may be checked to verify the fix.

Jdlrobson-WMF claimed this task.

Thanks for working on this. It looks like there is a new issue related to the fix here T374753: Add margin top for h3s after paragraph in parsoid mobile which we will track in that ticket.