[csswg-drafts] [css-inline-3] [css-display-3] Root inline box description conflicts with "Inline Layout Box Model" diagram (#5555)

twilco has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-inline-3] [css-display-3] Root inline box description conflicts with "Inline Layout Box Model" diagram ==
Quoting https://drafts.csswg.org/css-inline-3/#model:

> 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.)

And quoting https://drafts.csswg.org/css-display-3/#block-container:

> 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 box.  However, that immediately conflicts with the diagram in css-inline-3, which shows multiple root inline boxes each wrapping separate pieces of inline-level content within the block container:

![CSS Inline Layout Box Model, shows three root inline boxes nested within separate line boxes](https://user-images.githubusercontent.com/6610100/94390016-1568d700-0117-11eb-81a0-4a60cac2b294.png)

This notion of multiple root inline boxes also seems to be well established outside the spec — see https://github.com/w3c/csswg-drafts/issues/1477#issue-232094849 and https://github.com/w3c/csswg-drafts/issues/1477#issuecomment-313249280, both of which layout the given example with multiple root inline boxes.

What is correct — multiple root inline boxes per block container, or one?

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5555 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 28 September 2020 04:33:34 UTC