-
Notifications
You must be signed in to change notification settings - Fork 716
Is a box that establishes a BFC considered a Block Container? #11217
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
Comments
For example, a position value of absolute or fixed blockifies a box and forces it to establish an independent formatting context. Is the that box now considered a "Block container" ? |
Yes
Not in general.
Forcing a box to establish an independent formatting context doesn't turn it into a block container. Either it was already a block container and then it will establish a BFC, or it was something else and will establish a different kind of formatting context, or "establish an independent formatting context" doesn't apply. |
But setting |
False, it can establish other kind of formatting contexts
False, it can be another kind of container |
According to the spec Floats, absolutely positioned elements, block containers (such as inline-blocks, table-cells, and table-captions) that are not block boxes, and block boxes with 'overflow' other than 'visible' (except when that value has been propagated to the viewport) establish new block formatting contexts for their contents. |
CSS2 is outdated. As I pointed out in #11126 (comment) |
So the note in the new spec:
This means that:
|
Can the same be said on flex item ?
|
Basically, yes. If it's not replaced or some special HTML thing or such. Also, about ruby, once blockified the principal box is a block container (see #9265) which will then establish a BFC, the ruby formatting context is established by a non-principal inline-level ruby container. |
Could you clarify if a box that establishes an independent formatting context is considered a block container? The spec is currently unclear on this point.
The text was updated successfully, but these errors were encountered: