Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Loirooriol opened this issue Apr 7, 2017 · 3 comments

Comments

@Loirooriol
Copy link
Contributor

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.

@fantasai
Copy link
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

@Loirooriol
Copy link
Contributor Author

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.

@fantasai
Copy link
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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants