Skip to content

[css-display-4] Suggestion to clarify "block container" definition #12129

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

Open
gitspeaks opened this issue Apr 28, 2025 · 0 comments
Open

[css-display-4] Suggestion to clarify "block container" definition #12129

gitspeaks opened this issue Apr 28, 2025 · 0 comments

Comments

@gitspeaks
Copy link

The current definition of "block container" in CSS Display Module Level 4 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.

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