-
Notifications
You must be signed in to change notification settings - Fork 719
[css-inline-3] leading-trim through to descendant line boxes #5237
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
Comments
The CSS Working Group just discussed
The full IRC log of that discussion |
Proposed definition:
Agenda+ to confirm as requested by previous discussion. |
The CSS Working Group just discussed
The full IRC log of that discussion |
On the name question: we don't actually use “leading” to describe space between lines anywhere in CSS, do we? Could this be (I myself initially assumed it was “leading” meaning “trim off the starting bit, above the first line”, not “trimming off the extra lead/metal from your type pieces so you can pack them in more compactly”.) |
Amelia, 'leading' means (a) the strips of lead added between lines of type to increase the line spacing, and (b) the amount by which the line height is so increased. |
Uh oh!
There was an error while loading. Please reload this page.
The current definition of
leading-trim
relies on the concept of “first formatted line”. This was done for two reasons:However, it might be a bit too aggressive, as it also drills through styled block boxes. Consider
The .warning would probably be a bit surprised if the section trimmed its half-leading when it didn't request such trimming itself.
I think we might want to borrow the logic from margin collapsing, and not drill into boxes with non-zero padding/border. Whether or not the margins could have collapsed seems closely related to whether or not this block’s own content edge is adjacent to its descendant's first/last line box and therefore whether it should be controlling the leading on that line.
The text was updated successfully, but these errors were encountered: