mdevils/css-selector-parser

Does it support The & nesting selector?

Closed this issue · 1 comments

Doesn't Parse The & nesting selector?!

.parentClass {
    color: aqua;
    & .childClass {
      color:aquamarine;
    }
  }
const parse = createParser();
const selector = parse('& .childClass');
Error [ParserError]: css-selector-parser parse error: Expected rule but "&" found. Pos: 0.

Hello @n4j1Br4ch1D. I'm currently focusing on implementing existing official W3C standards and drafts. & is not part of CSS standards and will probably not be implemented according to the current plans.