-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-inline-3] line-height and content height of inline box #3820
Comments
I retract the "strange to specify ... overlap" part: overlapping asc & desc metrics doesn't necessarily imply overlapping ascenders or descenders, and if the author does want to reduce the space between border and text then the alternatives (leading-trim, or maybe use of inline-block) have costs of their own. |
That text hasn't been ported from CSS2.1 yet, which is why it's incorporated by reference.
It does seem that the interactions of
It's intentional that negative line-heights affect the content box of an inline, because if they didn't any child element inside a paragraph with e.g. |
Note that the CSS2.1 text about line-height / content height itself is not up to date, pending #3749 being reapplied. |
Did some clean-up here, and in particular handled the interaction of |
css-inline-3 §2.4 (#valdef-line-sizing-normal) says:
and
which I would take to mean that half-leading (and hence 'line-height') affects the content height of the inline box, but it does not actually specify what the content height is. Furthermore, §3.1 does specify the content height, but none of its definitions are affected by line-height. Furthermore, note that only negative half-leading is involved here, and it seems strange to specify that a reduced line-height should cause borders to overlap the ascenders and/or descenders of the text (at least in absence of padding).
I suggest (i) removing the quoted parts that suggest that 'line-height' affects content height; and (ii) that either the contribution of an inline box to the line-box height is determined solely by one of margin-box height and line-height (or conceivably the minimum of the two); or that some other property is involved in deciding the contribution (whether 'line-sizing', 'line-box-contain' or other).
The text was updated successfully, but these errors were encountered: