Skip to content

[css-display] Block containers can also establish an inline formatting context #1185

Closed

Description

@Loirooriol

From CSS 2.1,

A block container box either contains only block-level boxes or establishes an inline formatting context and thus contains only inline-level boxes.

That disappeared from CSS Display. It defines block container as

A box whose contents participate in a block formatting context.

But if the box container only contains inline-level boxes, the box container will establish an inline formatting context, and the inline-level boxes will then participate in an inline formatting context, not in a block formatting context. In fact, that's what inline-level boxes do by definition, they participate in an inline formatting context.

Activity

  1. fantasai commented on May 15, 2017

    @fantasai
    Collaborator

    @Loirooriol Okay, we've rewritten the definition of “block container” to be, hopefully, more correct with regard to CSS2.1. Please take a look and let us know if it seems alright? :)
    https://drafts.csswg.org/css-display/#block-container

  2. Loirooriol commented on May 15, 2017

    @Loirooriol
    ContributorAuthor

    Yes, much better :) Maybe I would mention display itself in the examples of properties which can make a block container establish a BFC, now that we have flow-root. And I would move the note into the definition of block box, and say that, in a similar way, not all block-level boxes are block container boxes.

  3. fantasai commented on Jul 11, 2017

    @fantasai
    Collaborator

    Maybe I would mention display itself in the examples of properties which can make a block container establish a BFC, now that we have flow-root.

    It's not an exhaustive list, so I would like to continue not pretending to be one. :)

    And I would move the note into the definition of block box

    Done.

  4. added a commit that references this issue on Jul 12, 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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions