17

If you look at the revision history of Is SO pricing their site predatorially if it is making a loss? on Chrome 34 / Windows 7, you should see the following:

title being cut off

The behavior of the title in revision 7 is probably not by-design.

6
+100

This is happening because the MSE style sheet specifies the default line height as:

html, body {
    font-size: 13px;
    line-height: 1.3em;  /* <-- note em units here */
}

This has exactly the same effect as:

html, body {
    font-size: 13px;
    line-height: 1.3;    /* <-- no units */
}

...except when some other inner element changes the font size while inheriting the line height.

This note on MDN describes exactly the same issue as the one we're seeing live here. It's titled "Prefer unitless numbers for line-height values". I'll let you all draw your own conclusions.


Ps. A simple specific work-around for this particular issue is:

h1 { line-height: 1.3 }

I've included this workaround in the Stack Overflow Unofficial Patch v1.14.

Pps. As of SOUP v1.14.1, this fix is also applied on Academia.SE, as the same bug appears to be present there as well.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .