File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -154,6 +154,15 @@ function localizeDeclNode(node, context) {
154
154
return newNode ;
155
155
}
156
156
break ;
157
+
158
+ case 'nested-item' :
159
+ var newNodes = node . nodes . map ( function ( n ) {
160
+ return localizeDeclValue ( n , context ) ;
161
+ } ) ;
162
+ node = Object . create ( node ) ;
163
+ node . nodes = newNodes ;
164
+ break ;
165
+
157
166
case 'url' :
158
167
if ( context . options && context . options . rewriteUrl ) {
159
168
newNode = Object . create ( node ) ;
Original file line number Diff line number Diff line change @@ -363,6 +363,7 @@ var tests = [
363
363
input : '.a { background: url(./image.png); }\n' +
364
364
':global .b { background: url(image.png); }\n' +
365
365
'.c { background: url("./image.png"); }\n' +
366
+ '.d { background: -webkit-image-set(url("./image.png") 1x, url("./image2x.png") 2x); }\n' +
366
367
'@font-face { src: url("./font.woff"); }\n' +
367
368
'@-webkit-font-face { src: url("./font.woff"); }\n' +
368
369
'@media screen { .a { src: url("./image.png"); } }\n' +
@@ -377,6 +378,7 @@ var tests = [
377
378
expected : ':local(.a) { background: url((local\\)./image.png\\\"local\\\"); }\n' +
378
379
'.b { background: url((global\\)image.png\\\"global\\\"); }\n' +
379
380
':local(.c) { background: url(\"(local)./image.png\\\"local\\\"\"); }\n' +
381
+ ':local(.d) { background: -webkit-image-set(url(\"(local)./image.png\\\"local\\\"\") 1x, url(\"(local)./image2x.png\\\"local\\\"\") 2x); }\n' +
380
382
'@font-face { src: url(\"(local)./font.woff\\\"local\\\"\"); }\n' +
381
383
'@-webkit-font-face { src: url(\"(local)./font.woff\\\"local\\\"\"); }\n' +
382
384
'@media screen { :local(.a) { src: url("(local)./image.png\\"local\\""); } }\n' +
You can’t perform that action at this time.
0 commit comments