Skip to content

'target-current' is not recognized as a valid pseudo-class #1181

@Th3S4mur41

Description

@Th3S4mur41

Ligntning CSS is throwing a warning

[WARN] [vite] [vite:css][lightningcss] 'target-current' is not recognized as a valid pseudo-class. Did you mean '::target-current' (pseudo-element) or is this a typo?

for selector:

a:target-current {
  anchor-name: --toc-target;
}

:target-current is a valid pseudo-class though

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