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.

4
  • Also happens in Firefox Aurora 30.0a2. Apr 28, 2014 at 5:43
  • Looks like the return of this bug Apr 28, 2014 at 7:02
  • Just for record-keeping: I'm reversing the direction of the dupe closure because this post has an answer and the other one doesn't.
    – Pops
    May 8, 2014 at 4:26
  • Fixed by design team around June 5, 2014 Jun 5, 2014 at 23:03

1 Answer 1

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.

1

You must log in to answer this question.

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