Skip to content
This repository was archived by the owner on Apr 4, 2019. It is now read-only.

:has() pseudo-class doesn't compile correctly when nested #110

@kaelig

Description

@kaelig

The :has pseudo-class doesn't get compiled correctly when nested, see https://www.sassmeister.com/gist/a3dc4d7d09c7434bffb7dce3078e7836

Source

.foo > p:not(:has(> img)) {
  max-width: 42rem;
}

.foo {
  > p:not(:has(> img)) {
    max-width: 42rem;
  }
}

Expected

.foo > p:not(:has(> img)) {
  max-width: 42rem;
}

.foo > p:not(:has(> img)) {
  max-width: 42rem;
}

Actual

.foo > p:not(:has(> img)) {
  max-width: 42rem;
}

.foo > p {
  max-width: 42rem;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions