less.js icon indicating copy to clipboard operation
less.js copied to clipboard

less grammar validation(Pseudo classes) support

Open stefango opened this issue 4 years ago • 1 comments

https://youtrack.jetbrains.com/issue/WEB-50647#focus=Comments-27-4853266.0-0

// wrong(no error in WebStorm)
&:not(first-child) {
background: red;
}
// true
&:not(:first-child) {
background: red;
}

stefango avatar May 12 '21 07:05 stefango

Less compiler doesn't report any errors for this code, and the generated CSS is accepted by W3C validator; what errors would you expect to see here?

https://validator.w3.org/nu/#textarea you can use this validator to check less generated code, it's valid, so it work as expetced and not bug.

iChenLei avatar Jun 02 '21 10:06 iChenLei