Closed jacketwpbb closed 1 year ago
This is as designed, although it probably isn't documented well-enough. Custom property values only do simple variable substitutions.
You have to do:
@h: 1px * 10;
:root {
--a: @h;
}
.a {
height: @h * 10;
}
To reproduce:
Current behavior:
Expected behavior:
Environment information:
less
version: 4.1.3operating system
: https://lesscss.org/less-preview