Skip to content

ParseError with :is() or :matches() containing :has() #4278

Open
@SuperPat45

Description

@SuperPat45

To reproduce:

:is(:not(:has(>.foo)), :has(>.foo.bar)) {
    overflow: clip;
}

Current behavior:

Throw a:
ParseError: Missing closing ')'

Expected behavior:

No exception has the number of close parenthesis is correct
Environment information:

  • less version: 4.2.0
  • nodejs version: 20.17
  • operating system: windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions