@@ -330,30 +330,26 @@ var tests = [
330
330
error : / @ k e y f r a m e s : g l o b a l \( \. \. \. \) i s n o t a l l o w e d i n p u r e m o d e /
331
331
} ,
332
332
{
333
- should : 'throw on implicit global element' ,
333
+ should : 'pass through global element' ,
334
334
input : 'input {}' ,
335
- error : / ' i n p u t ' m u s t b e e x p l i c i t f l a g g e d : g l o b a l /
336
- } ,
337
- {
338
- should : 'throw on implicit global element (with multiple 1)' ,
339
- input : 'input, .foo {}' ,
340
- error : / ' i n p u t , \. f o o ' m u s t b e e x p l i c i t f l a g g e d : g l o b a l /
335
+ expected : 'input {}'
341
336
} ,
342
337
{
343
- should : 'throw on implicit global element (with multiple 2) ' ,
344
- input : '.foo, input {}' ,
345
- error : / ' \ .f o o , i n p u t ' m u s t b e e x p l i c i t f l a g g e d : g l o b a l /
338
+ should : 'localise class and pass through element ' ,
339
+ input : '.foo input {}' ,
340
+ expected : ':local( .foo) input {}'
346
341
} ,
347
342
{
348
- should : 'throw on implicit global attribute' ,
343
+ should : 'pass through attribute selector ' ,
349
344
input : '[type="radio"] {}' ,
350
- error : / ' \ [t y p e = " r a d i o " \] ' m u s t b e e x p l i c i t f l a g g e d : g l o b a l /
345
+ expected : ' [type="radio"] {}'
351
346
} ,
352
347
{
353
- should : 'throw on implicit global attribute in nested ' ,
354
- input : ':not([type="radio"]) {}' ,
355
- error : / ' : n o t \( \ [t y p e = " r a d i o " \] \) ' m u s t b e e x p l i c i t f l a g g e d : g l o b a l /
348
+ should : 'localise class and pass through attribute ' ,
349
+ input : '.foo :not([type="radio"]) {}' ,
350
+ expected : ':local(.foo) : not( [type="radio"]) {}'
356
351
}
352
+
357
353
] ;
358
354
359
355
function process ( css , options ) {
0 commit comments