-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Labels
Description
To reproduce:
.main{
@layer{
&::before{
color:#f00;
}
}
}
Current behavior:
Nesting selector &
lost in @layer
.
But other @ rules works well, such as @media
, @container
etc.
@layer {
::before {
color: #f00;
}
}
Expected behavior:
Nesting selector &
resolved as its scope selector.
@layer {
.main::before {
color: #f00;
}
}
Environment information:
less
version: 4.2.0
Metadata
Metadata
Assignees
Labels
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
matthew-dean commentedon Feb 5, 2024
Fixed in #4260
@layer
feature #4260puckowski commentedon Jul 16, 2025
Hello,
This Less:
becomes
in Less
4.4.0
available on npm now at https://www.npmjs.com/package/less/v/4.4.0