- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 11 Nov 2024 18:14:04 +0000
- To: public-css-archive@w3.org
> Could you clarify what is meant by a block container box establishing both a BFC and an inline FC simultaneously? Inline layout isn't independent from block layout, both are different aspects of [flow layout](https://drafts.csswg.org/css-display/#flow-layout). So they can coexist. > Under what conditions would this occur, and how should it be expected to behave? A block container that is forced to establish an independent formatting context will establish a BFC. But if it only contains inline-level contents, then it will also establish an inline FC. > Are there specific examples that illustrate this behavior? ```html <div style="display: inline-block">lorem ipsum</div> ``` The inline-block is a block container, and it establishes a BFC because it's not block-level. But it only has inline-level contents (the text "lorem ipsum"), so it establishes an inline FC too. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11177#issuecomment-2468769990 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Monday, 11 November 2024 18:14:05 UTC