Skip to content

[css-inline][css-display] Does the root inline box replace anonymous inline boxes? #1383

Closed

Description

@Loirooriol

CSS Display refers to CSS 2.1 for flow layout, and 9.2.2.1 Anonymous inline boxes says

Any text that is directly contained inside a block container element (not inside an inline element) must be treated as an anonymous inline element.

But CSS inline says

The root inline box is an anonymous inline box which is automatically generated to hold all of the inline-level contents of a block container (if it has any).

What happens first? Is the text first wrapped inside an anonymous inline box according to CSS2.1, and then further wrapped inside the root inline box, together with surrounding inline-level boxes?

Or are all inline-level contents (including text) wrapped inside the root inline box, and thus the text is no longer directly contained inside the block container, and therefore no additional anonymous inline box is created to wrap the text?

Activity

  1. dbaron commented on May 16, 2017

    @dbaron
    Member

    The "root inline box" concept came later, and was intended (by me, at least) to replace the former rule on anonymous inline boxes that you quote.

  2. Loirooriol commented on May 16, 2017

    @Loirooriol
    ContributorAuthor

    Thanks, that's what I suspected. I think this should be mentioned in a note or something, otherwise people will expect the quote from CSS2.1 to still apply, and won't be clear what should happen.

  3. tabatkins commented on May 16, 2017

    @tabatkins
    Member

    Added a note referencing this to Display, in the "block container" definition.

  4. added
    Commenter Satisfied
    and removed on Jul 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed Accepted as EditorialCommenter SatisfiedTracked in DoCcss-display-3css-inline-3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions