- From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
- Date: Mon, 11 Nov 2024 13:17:36 +0000
- To: public-css-archive@w3.org
https://drafts.csswg.org/css-display/#block-container > A block container either contains only inline-level boxes participating in an [inline formatting context](https://drafts.csswg.org/css-display/#inline-formatting-context), or contains only block-level boxes participating in a [block formatting context](https://drafts.csswg.org/css-display/#block-formatting-context) (possibly generating anonymous block boxes to ensure this constraint, as defined in [CSS2§9.2.1.1](https://www.w3.org/TR/CSS2/visuren.html#anonymous-block-level)). > > A block container that contains only inline-level content establishes a new [inline formatting context](https://drafts.csswg.org/css-display/#inline-formatting-context). The element then also generates a [root inline box](https://www.w3.org/TR/css-inline-3/#root-inline-box) which wraps all of its inline content. Note, this [root inline box](https://www.w3.org/TR/css-inline-3/#root-inline-box) concept effectively replaces the "anonymous inline element" concept introduced in [CSS2§9.2.2.1](https://www.w3.org/TR/CSS2/visuren.html#anonymous). > > A block container establishes a new [block formatting context](https://drafts.csswg.org/css-display/#block-formatting-context) if its parent formatting context is not a block formatting context; otherwise, when participating in a block formatting context itself, it either establishes a new block formatting context for its contents or continues the one in which it participates, as determined by the constraints of other properties (such as [overflow](https://www.w3.org/TR/CSS21/visufx.html#propdef-overflow) or [align-content](https://www.w3.org/TR/css-align-3/#propdef-align-content)). > > Note: A block container box can both establish a block formatting context and an inline formatting context simultaneously. -- GitHub Notification of comment by Loirooriol Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11126#issuecomment-2468158951 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 13:17:37 UTC