Whether the official statement "Selectors with variables will not match" is wrong?
Open
@matthew-dean is already working on this.
Since Nov 30, 2023.
bug
- Dominant language
- JavaScript
- Stars
- 17k
- Forks
- 3.4k
- Avg merge
- 7h 42m
- Merged PRs (30d)
- 26
Description
To reproduce:
@variable: .bucket;
@{variable} { // interpolated selector
color: blue;
}
.some-class:extend(.bucket) {} // does nothing, no match is found
Current behavior:
.bucket,
.some-class {
color: blue;
}
Expected behavior:
.bucket {
color: blue;
}
Environment information:
lessversion: v4.2.0nodejsversion: 12.22.12operating system: win10
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.