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

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

Open
kaelig opened this issue Feb 22, 2019 · 0 comments
Open

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

kaelig opened this issue Feb 22, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@kaelig
Copy link
Contributor

kaelig commented Feb 22, 2019

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;
}
@nex3 nex3 added the bug Something isn't working label Feb 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants