-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
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
[Feature request] CSS Nesting support #3781
Comments
@woody-li its Chrome 112 not Chrome 102 that will support CSS Nesting |
@woody-li The short answer is there hasn't been a long-term roadmap for Less in regards to CSS Nesting. In general, Less is in maintenance mode. The other tricky thing is that CSS Nesting is not a 1:1 map to Less / Sass nesting. Both Less and Sass basically append whatever string is after .box {
&-header {
background: red;
}
} In Less / Sass, this will match an element like this: <div class="box-header"></div> However, with CSS Nesting, this will match an element like this: <-header class="box"></-header> Less could probably add a flag to prevent flattening 🤔 , hmm... |
Having an option to allow compiling LESS nesting to CSS standard compatible nesting (by rewriting only incompatibles nesting) would be awesome as soon as Firefox will implement it. |
https://www.w3.org/TR/css-nesting-1/
https://caniuse.com/css-nesting/
CSS Nesting has implemented, Chrome 112 and Safari 16.5 will support it.
Does less has any implement schedule of it?
An option or other settings (e.g. browserlist)?
The text was updated successfully, but these errors were encountered: