Closed ben-lau closed 7 months ago
@ben-lau
Does this work?
#root {
@bg-compose: url('../../asset/rabbit/bg-top.png') no-repeat top center 100% 68px,
url('../../asset/rabbit/bg-middle.png') no-repeat 0px 67px 100% calc(100% - 67px - 67px),
url('../../asset/rabbit/bg-bottom.png') no-repeat bottom center 100% 68px;
--bg-compose: @bg-compose;
}
@matthew-dean Yes, it works, thanks and sorry for the late reply.
To reproduce:
I have a css variable that is used in the background-image property, but when I use the multiple background images property, none of the urls are rewritten correctly except the first statement.
here is my less code in
./style/rabbit/rabbitV1.less
which import by./style/rabbit/index.less
:here is my directory structure tree:
Current behavior:
The above less code will be transformed into this:
Now only the first url will be converted correctly, the rest will just be output as-is.
Expected behavior:
long story short, I hope all the url will be transform.
I debug the transform process in less, I found only the first statement will be correctly identified as Expression, the rest will be identified as Quote.
Use css variable as keywords![image](https://github.com/less/less.js/assets/16952163/6f427931-b127-4a43-b366-6a4ee834d5b1)
Use background-image as keywords![image](https://github.com/less/less.js/assets/16952163/747ea11e-92d3-422f-a23b-82bd0832427c)
Environment information:
less
version: 4.2.0nodejs
version: 14.21.0operating system
: macbook pro Apple M1