Skip to content

Support ::search-text (and :current::search-text) highlight pseudos from CSS Pseudo-4 #1212

@lucinadin

Description

@lucinadin

::search-text is a spec-defined highlight pseudo-element and should be accepted by Lightning CSS parser/selector handling.

Minimal repro:

.x::search-text { color: red; }

Current:

  • search-text is treated as unknown/unsupported pseudo-element.
Image

Expected:

  • ::search-text parses and serializes as valid selector syntax.
  • No unsupported pseudo-element warning for valid syntax.

Why this is valid:

Sources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions