[Webkit-unassigned] [Bug 88600] Inconsistent line-height when font-weight differs across a line

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 13 22:12:23 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=88600


mitz at webkit.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID




--- Comment #4 from mitz at webkit.org  2012-06-13 22:12:22 PST ---
(In reply to comment #3)
> Shouldn't that just affect the vertical alignment of the glyphs within the line - not grow the line height to something larger than what was asked for by the line-height property?

No. See <http://www.w3.org/TR/CSS21/visudet.html#line-height>. Consider a line height of 20, an inline box with a font whose ascender height is 14 and descender depth is 4, and another inline box whose ascender height is 15 and descender depth is 3. The leading in both cases is 2 = 20 - (14 + 4) = 20 - (15 + 3), so the half leading is 1 in both cases. Now when you baseline-align the boxes, the height above the baseline is max(1 + 14, 1 + 15) = 16 and the depth below the baseline is max(1 + 4, 1 + 3) = 5, so the line box height is 16 + 5 = 21.

A practical solution for the specific case in the URL would be to specify a { line-height: 0; }.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list