Page MenuHomePhabricator

Spacing between lines of different font size is not proportional
Closed, ResolvedPublic

Description

When two, line-break, <br /><br />, tags are used in wikitext, then for smaller font sizes, the line break produces too-large a vertical spacing between the lines. The effect doesn't depend on which Wikipedia skin is in effect. Here are some examples to try on the wiki:

;Example 1
This is a paragraph with default font size.<br /><br />Note the acceptable paragraph spacing between this line, started with two line-breaks, and the previous line; both inside a normal font. And I'm hoping if I add enough text this line will wrap to show that two paragraphs really can be in one line.

;Example 2
<font size="-3">This is a paragraph with a &lt;font size="-3"&gt;.<br /><br />Note the unacceptably large spacing between this line, started with two line-breaks, and the previous line. It's the same spacing as in the first example. It should have becoming proportionally smaller vertical spacing because the font is smaller.</font>

Event Timeline

Cpiral raised the priority of this task from to Needs Triage.
Cpiral updated the task description. (Show Details)
Cpiral subscribed.

Use HTML p-tags with style=font-size:small attributes. Inside the p-tags the spacing created by the <br /><br /> will be proportional.

<p style="font-size:x-small;"> Then the benchmark line gets<br /><br />a proportionally spaced line.</p>

Cpiral updated the task description. (Show Details)