You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 9, 2022. It is now read-only.
Lines containing portions of bold, superscript and subscript text will sometimes be rendered slightly taller than other lines. Presumably the browser does this to stop lines bleeding into each other.
The current solution involves adding p strong, p sup, p sub { font-size: 0.9rem } to user CSS. This works, but a more scalable solution would probably be better.
Support
Seems to be supported in Chrome > 16 and Safari > 5.1.
In this example using -webkit-line-box-contain: block, the line height is contained even though one line contains a character more than double the height of the other characters: http://jsfiddle.net/6u7Qa/1/
The problem is that the big A bleeds into the preceding line, overlapping an a.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Problem
Lines containing portions of bold, superscript and subscript text will sometimes be rendered slightly taller than other lines. Presumably the browser does this to stop lines bleeding into each other.
The current solution involves adding
p strong, p sup, p sub { font-size: 0.9rem }
to user CSS. This works, but a more scalable solution would probably be better.Support
Seems to be supported in Chrome > 16 and Safari > 5.1.
Documentation
CSS3 LineBox spec
Peter Beverloo's WebKit blog
The text was updated successfully, but these errors were encountered: