Skip to content

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

Closed
@andruud

Description

@andruud

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions