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
The block container also generates a root inline box, which is an anonymous inline box that holds all of its inline-level contents. (Thus, all text in an inline formatting context is directly contained by an inline box, whether the root inline box or one of its descendants.)
A block container that contains only inline-level content establishes a new inline formatting context. The element then also generates a root inline box which wraps all of its inline content. Note, this root inline box concept effectively replaces the "anonymous inline element" concept introduced in CSS2§9.2.2.1.
These passages imply that each block container only generates a singular root inline box, and that this root inline box wraps all inline-level content present in the block container. However, that immediately conflicts with the "Inline Layout Box Model" diagram that is also in https://drafts.csswg.org/css-inline-3/#model, which shows multiple root inline boxes each wrapping separate pieces of inline-level content within the block container:
This notion of multiple root inline boxes also seems to be well established outside the spec — see #1477 (comment) and #1477 (comment), both of which layout the given example with multiple root inline boxes.
What is correct — multiple root inline boxes per block container, or one?
The text was updated successfully, but these errors were encountered:
Exactly as @Loirooriol explains, the diagram is pointing to the various fragments of the root inline box. Perhaps it would be better to place the diagram after the section describing fragmentation into line boxes.
@twilco Moved the diagram. Let me know if this is adequate or if there's some other clarification that would help?
Note that #1477 is about block-in-inline splits, which is a bit of a different case. (For one thing, it involves inlines being split across multiple block containers.)
Quoting https://drafts.csswg.org/css-inline-3/#model:
And quoting https://drafts.csswg.org/css-display-3/#block-container:
These passages imply that each block container only generates a singular root inline box, and that this root inline box wraps all inline-level content present in the block container. However, that immediately conflicts with the "Inline Layout Box Model" diagram that is also in https://drafts.csswg.org/css-inline-3/#model, which shows multiple root inline boxes each wrapping separate pieces of inline-level content within the block container:
This notion of multiple root inline boxes also seems to be well established outside the spec — see #1477 (comment) and #1477 (comment), both of which layout the given example with multiple root inline boxes.
What is correct — multiple root inline boxes per block container, or one?
The text was updated successfully, but these errors were encountered: