Page MenuHomePhabricator

Infobox small resolution hacks don't play nice with any other HTML in caption
Closed, DuplicatePublicBUG REPORT

Assigned To
None
Authored By
Izno
Jun 8 2026, 4:08 PM
Referenced Files
F88531714: image.png
Jun 14 2026, 9:18 PM
F87457087: image.png
Jun 8 2026, 4:23 PM
F87454528: image.png
Jun 8 2026, 4:08 PM
F87453603: image.png
Jun 8 2026, 4:08 PM

Description

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

What happens?:

  • Note the infobox.

image.png (382×367 px, 19 KB)

What should have happened instead?:
Content should be "inline" instead (well, there are some <br>s).

image.png (354×152 px, 16 KB)

(from desktop)

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

Other information (browser name/version, screenshots, etc.):
The display is caused by

body.skin--responsive.skin-minerva .mw-parser-output .infobox > tbody,
body.skin--responsive.skin-minerva .mw-parser-output .infobox > caption {
  display: flex;
  flex-flow: column nowrap;
}

coming from ext.wikimediamessages.styles/infobox.less.

Event Timeline

Restricted Application added subscribers: revi, Aklapper. · View Herald Transcript
This comment was removed by Izno.

I don't think this can be fixed in the CSS without removing the rule. Which I honestly can't see a reason for existing: infoboxes which include content in their caption that would need a treatment like this are probably non-existent.

And looking through things, not fundamentally a Parsoid issue. This would be an issue with Parser.php rendering also (just applied the broken CSS there).

image.png (354×406 px, 25 KB)

Izno renamed this task from Infobox small resolution hacks don't play nice with Parsoid to Infobox small resolution hacks don't play nice with any other HTML in caption.Jun 8 2026, 4:21 PM
Izno updated the task description. (Show Details)
Izno attached a referenced file: F87457087: image.png. (Show Details)

I changed the <br> tags to use the unbulleted list template instead and this seems to have resolved the issue when toggling between desktop and mobile views. (I am using a desktop PC.) However, the issue on the page is still viewable in the older revisions before I made this change to the article.

A similar issue is affecting the Chembox template in the article "Tröger's base", where the issue is unrelated to <br> pseudolists. The title contains an apostrophe which is being displayed on a separate line.

Visit the article in mobile view: https://en.wikipedia.org/wiki/Tr%C3%B6ger%27s_base?useformat=mobile

image.png (331×231 px, 18 KB)

I thought it would be worth mentioning here as the issue is very similar, so it may be relevant.