[csswg-drafts] [css-contain-3] What happens to other @rules inside @container? (#6827)

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

== [css-contain-3] What happens to other @rules inside @container? ==
E.g. `@property`, `@font-face`, etc.

css-contain-3:
> The `@container` rule is a _conditional group rule_ [...]

css-conditional-3:
>  [about conditional group rules]: When the condition is true, CSS processors must apply the rules inside the group rule as though they were _at the group rule’s location_; [...]

However, that text in css-conditional-3 was probably written with the assumption that the condition can be evaluated parse-time. `@container` is more complicated than this, and can evaluate to both true and false depending on the element we're resolving style for. Maintaining a number of different @rule-realities dynamically per element is probably not a practical option.

For `@layer` we decided that it should impact layer order regardless of evaluation. Not sure if that translates into anything else.

cc @mirisuzanne @lilles 

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


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

Received on Wednesday, 24 November 2021 11:58:24 UTC