Page MenuHomePhabricator

a <span> element in a heading causes a line break in mobile view
Closed, ResolvedPublic

Description

Mediawiki 1.26wmf23
Using a span element in the heading of an article like this:
=== line <span style="color:green">break</span> ===
causes a line break in mobile view. This can be reproduced on
de.m.wiktionary.org and en.m.wiktionary.org

The reason is a rule in https://de.m.wiktionary.org/w/load.php?debug=false&lang=de&modules=mediawiki.ui.button%2Cicon|skins.minerva.base.reset%2Cstyles|skins.minerva.content.styles|skins.minerva.tablet.styles&only=styles&skin=minerva&target=mobile

the rule is

.content .in-block span
  display: table-cell;

I dont know what this rule is used for, fact is, if this rule is dropped, the line break does not appear any longer.

Event Timeline

Formatierer raised the priority of this task from to Needs Triage.
Formatierer updated the task description. (Show Details)
Formatierer subscribed.
Jdlrobson triaged this task as Medium priority.Sep 23 2015, 5:14 PM
Jdlrobson subscribed.

I think this just needs to be made into a child selector. '>'

Change 240562 had a related patch set uploaded (by D3r1ck01):
a <span> element in a heading causes a line break in mobile view

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

Change 240562 merged by jenkins-bot:
a <span> element in a heading causes a line break in mobile view

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