less.js
less.js copied to clipboard
Nested pseudo-selectors that take selectors eport missing a closing ')' when separated by commas
To reproduce:
a:is(.b, :is(.c)) {
color: blue;
}
Current behavior:
Reports Missing closing ')' even though parentheses are balanced. This is true for :is(), :where(), and :not() which all can accept selector lists, meaning those selector lists may also have :is(), :where(), and :not(). It's possible that those pseudo-selectors are not parsing their contents as selectors.
Expected behavior:
Selectors should support nesting of selectors within pseudo-selectors that take relative selector lists as input
Environment information:
lessversion: 4.2.0nodejsversion: Current Less previewoperating system:
assign this to me
I was working on this issue in my fork and came up with a PR that passes tests: https://github.com/less/less.js/pull/4290
Should be resolved via https://github.com/less/less.js/pull/4290 Release v4.2.2