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
{{ message }}
Repository navigation
[css-display] Block containers can also establish an inline formatting context #1185
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.
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.
Activity
fantasai commentedon May 15, 2017
@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
Loirooriol commentedon May 15, 2017
Yes, much better :) Maybe I would mention
displayitself in the examples of properties which can make a block container establish a BFC, now that we haveflow-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.fantasai commentedon Jul 11, 2017
It's not an exhaustive list, so I would like to continue not pretending to be one. :)
Done.
[css-display] Move note per #1185.