Skip to content

[css-conditional] CSSContainerRule.containerQuery does not define how to handle omitted <container-query> #11269

Open

Description

@Psychpsyo

The CSSContainerRule interface says about its containerQuery that it "must return the <container-query> that was specified".
The grammar allows a rule with only a container name and no container query, so I'm wondering: What should this return in such a case?
Empty string seems to make sense, given that's what containerName does.

Currently, neither Firefox nor Chrome seem to support this so unless Safari does, I don't think there's any precedent here.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    css-conditional-5

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions