We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
To reproduce:
@compPrefix: ~'hi'; .@{compPrefix}{ color:red; &:not(.@{compPrefix}-one, .@{compPrefix}-two){ color:blue } }
@compPrefix: ~'hi'; .@{compPrefix}{ color:red; &:not(&-one, &-two){ color:blue } }
Current behavior:
ParseError: Missing closing ')' in /Users/lar/work/isv/theme_static/test.less on line 4, column 26: 3 color:red; 4 &:not(.@{compPrefix}-one, .@{compPrefix}-two){ 5 color:blue
Expected behavior: Output like this;
.hi { color: red; } .hi:not(.hi-one, .hi-two){ color: blue; }
Environment information:
less
nodejs
operating system
The text was updated successfully, but these errors were encountered:
Same issue with nested selector &
&
Works well:
.main{ :is(.main-a, .main-b){ color:red; } }
Same error:
.main{ :is(&-a, &-b){ color:blue; } }
Maybe related with #3802?
Sorry, something went wrong.
I believe #4290 may resolve this issue.
Fork release https://github.com/puckowski/less.js/releases/tag/4.2.1.2 takes the following Less.js
and outputs:
.hi { color: red; } .hi:not(.hi-one, .hi-two) { color: blue; }
Fork release is Less.js 4.2.1 with fixes for: #4252 #3737 #4258 #4264 #4268 #4267
I'll take a closer look later today.
With the PR the following Less.js:
becomes:
.main :is(&-a, &-b) { color: blue; }
I tested using https://github.com/puckowski/less.js/releases/tag/4.2.1.2
No branches or pull requests
To reproduce:
Current behavior:
Expected behavior:
Output like this;
Environment information:
less
version: 4.1.2nodejs
version: 16.14.0operating system
: macosThe text was updated successfully, but these errors were encountered: