-
Notifications
You must be signed in to change notification settings - Fork 719
[css-inline-3] inline boxes and line-fit-edge vs text-box-trim/edge #10834
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
In consideration of #10904 I think we should go with the third option for the I'm still unsure how we should interact with In other words, the proposal is to go with option 3. |
The CSS Working Group just discussed
The full IRC log of that discussion |
Thinking more on this issue, one problem we need to avoid is breaking CSS's “Transparency Principle”: that inserting an unstyled inline in an inline formatting context should have no effect on styling. So, for example, The height of a line box is the height of all its inline boxes regardless of nesting level. And So we can trim its content-box area for painting, but we cannot trim its height contribution. We can only increase it. |
Proposal Part A: When I think this is the most reasonable thing we can do here, given the constraints and the precedent of existing behavior. Proposal Part B: When |
The CSS Working Group just discussed The full IRC log of that discussion |
|
That said, it's not clear to me what the effects on inlines are supposed to be. The definition of |
The CSS Working Group just discussed
The full IRC log of that discussion |
Uh oh!
There was an error while loading. Please reload this page.
Now that we've split
line-fit-edge
(inherited) andtext-box-edge
(non-inherited), there's an interesting question of how these two features interact when applied to inline boxes, particularly if they have conflicting "opinions".Inline boxes currently have two sizes:
In the existing line height model, these two are not the same: block-axis margin/padding/borders are ignored completely for sizing, in favor of
line-height
.In the newer line-height model, as part of making inline layout more controllable, we want to use the margin box for sizing. That means
line-fit-edge
has to trim down the content box, not an imaginary other box, otherwise it's confusing (to size by applying margin/padding to one set of edges, but draw by applying it to a different set of edges). Thus by default, we need to apply trimming to inline boxes.The initial value of
text-box-trim
isnone
. Should we:text-box-edge
ignored by inline boxes and always trim to theline-fit-edge
?line-fit-edge
to control the sizing of an inline box; butline-fit-edge
inherits and might not be appropriate if they want to change the value on one item in order to draw its border differently.text-box-edge
apply to inline boxes regardless oftext-box-trim
? (Its initial value already defers toline-fit-edge
.)?text-box-edge
apply to the sides indicated bytext-box-trim
only, usingline-fit-edge
otherwise?What would be useful and understandable?
The text was updated successfully, but these errors were encountered: