Visitar URL original
[css-conditional-5] Define the block contents of `@container` with `<rule-list>` by cdoublev · Pull Request #9215 · w3c/csswg-drafts · GitHub
Skip to content

[css-conditional-5] Define the block contents of @container with <rule-list> - #9215

Merged
tabatkins merged 1 commit into
w3c:mainfrom
cdoublev:pr-9214
May 7, 2026
Merged

tabatkins merged 1 commit into
w3c:mainfrom
cdoublev:pr-9214

Conversation

@cdoublev

@cdoublev cdoublev commented Aug 22, 2023 •

Copy link
Copy Markdown
Collaborator

<block-contents> seems confusing to me because declarations are allowed only when @container is nested (at any level) in a style rule.

It is also inconsistent with other conditional rules (@media and @supports), whose block contents is defined with <rule-list>.

All conditional group rules are defined to take a <rule-list> in their block

https://drafts.csswg.org/css-conditional-3/#contents-of

@tabatkins

Copy link
Copy Markdown
Member

Agreed, it should be consistent with how we define @media/etc - <rule-list> in the official grammar, and let Nesting override that when nested (it specifies that the <rule-list> turns into a <block-contents> in this case).

@cdoublev cdoublev changed the title [css-contain-3] Define the block contents of @container with <rule-list> [css-conditional-5] Define the block contents of @container with <rule-list> May 1, 2026
@cdoublev cdoublev added the css-conditional-5 Current Work label May 1, 2026
@tabatkins
tabatkins merged commit efc0c6f into w3c:main May 7, 2026
1 check passed
@cdoublev
cdoublev deleted the pr-9214 branch May 7, 2026 02:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

css-conditional-5 Current Work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants