Skip to content

Missing support for :focus-within and :focus-visible #1768

@RedZapdos123

Description

@RedZapdos123

Feature request: add support for :focus-within and :focus-visible.

Current behavior:

  • Both selectors throw Unknown pseudo-class.

Context:

  • css-select already supports dynamic-state pseudos like :hover, :active, and :visited via optional adapter methods.

Suggestion:

  • Add optional adapter hooks and implement :focus-visible and :focus-within in the same style as other dynamic pseudos.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions