You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
The above less code will be transformed into this:
#root {
--bg-compose: url('../asset/rabbit/bg-top.png')no-repeattopcenter100%68px, /* only this url will be rewrite!!! */url('../../asset/rabbit/bg-middle.png')no-repeat0px67px100%calc(100%-67px-67px),
url('../../asset/rabbit/bg-bottom.png')no-repeatbottomcenter100%68px;
}
Now only the first url will be converted correctly, the rest will just be output as-is.
Expected behavior:
#root {
--bg-compose: url('../asset/rabbit/bg-top.png')no-repeattopcenter100%68px, /*all urls should be rewritten */url('../asset/rabbit/bg-middle.png')no-repeat0px67px100%calc(100%-67px-67px), /*all urls should be rewritten */url('../asset/rabbit/bg-bottom.png')no-repeatbottomcenter100%68px; /*all urls should be rewritten */
}
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
Use background-image as keywords
Environment information:
less version: 4.2.0
nodejs version: 14.21.0
operating system: macbook pro Apple M1
The text was updated successfully, but these errors were encountered:
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
Use background-image as keywords
Environment information:
less
version: 4.2.0nodejs
version: 14.21.0operating system
: macbook pro Apple M1The text was updated successfully, but these errors were encountered: