Skip to content

Conversation

@cdoublev
Copy link
Collaborator

@cdoublev cdoublev commented Aug 22, 2023

<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
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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants