Skip to content

False error in syntax highlighting when using has #817

@sanjarcode

Description

@sanjarcode

Describe the bug

I'm using the has keyword in CSS, and for a complex case, the editor shows an error (red squiggly lines).
The CSS is correct and works just fine. I verified it works in vscode editor.

Browser

Version 141.0.7390.77 (Official Build) (arm64)
macOS Tahoe 26.0.1

To Reproduce

Open the Stylebot editor (on any site) and paste this code

[data-actions-expanded] [aria-label='Options']{
  background-color: red;
}

div:has(> * > [aria-label="Edit event"]) {
  background-color: green;
}

Expected behavior

Red lines shouldn't be shown

Screenshots

Image Image

Additional context

I think syntax highlight package needs to be updated.

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