Skip to content

Whether the official statement "Selectors with variables will not match" is wrong? #4248

@micro-carving

Description

@micro-carving

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;
}

image

image

Expected behavior:

.bucket {
  color: blue;
}

Environment information:

  • less version: v4.2.0
  • nodejs version: 12.22.12
  • operating system: win10

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions