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 added a subscriber: Formatierer.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 23 2015, 8:55 AM
Jdlrobson triaged this task as Normal priority.Sep 23 2015, 5:14 PM
Jdlrobson added a subscriber: Jdlrobson.

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

Jdlrobson set Security to None.
D3r1ck01 claimed this task.Sep 23 2015, 7:06 PM

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

Jdlrobson closed this task as Resolved.Sep 23 2015, 9:18 PM