Skip to content

Support :state(<custom-ident>) and other pseudo-classes #1036

@skanne

Description

@skanne

Please officially support the pseudo-class :state(<custom-ident>)! It is marked as Baseline 2024 and is supported by all major browsers. See https://developer.mozilla.org/en-US/docs/Web/CSS/:state

Currently, lightningcss spits out the following warning:

'state' is not recognized as a valid pseudo-class. Did you mean '::state' (pseudo-element) or is this a typo?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions