[csswg-drafts] [css-display-4] Suggestion to clarify "block container" definition (#12129)

gitspeaks has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-display-4] Suggestion to clarify "block container" definition ==
The current definition of  "block container" in [CSS Display Module Level 4](https://www.w3.org/TR/css-display-4/#block-container) says:

> "A block container either contains only inline-level boxes participating in an inline formatting context, or contains only block-level boxes participating in a block formatting context (possibly generating anonymous block boxes to ensure this constraint, as defined in CSS2§9.2.1.1)."

This phrasing feels slightly circular, as it defines a "block container" by simply referring to "a block container," without immediately stating what it *is* (a type of box).

I suggest rewording it slightly for clarity, such as:

> "A block container is a box that either contains only inline-level boxes participating in an inline formatting context, or contains only block-level boxes participating in a block formatting context (possibly generating anonymous block boxes to ensure this constraint, as defined in CSS2§9.2.1.1)."


This makes it immediately clear that a block container is a *box*, improving the definition's clarity without altering its meaning.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12129 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 28 April 2025 13:45:48 UTC