@@ -1574,7 +1574,42 @@ const tests = [
1574
1574
{
1575
1575
name : "css nesting - throw #5" ,
1576
1576
input :
1577
- "html { button { div { div { div { @media screen and (min-width: 900px) { color: red } } } } } }" ,
1577
+ "html { div { @media screen and (min-width: 900px) { color: red } } }" ,
1578
+ options : { mode : "pure" } ,
1579
+ error : / i s n o t p u r e / ,
1580
+ } ,
1581
+ {
1582
+ name : "css nesting - throw #6" ,
1583
+ input :
1584
+ "html { div { @media screen and (min-width: 900px) { @media screen and (min-width: 900px) { color: red } } } }" ,
1585
+ options : { mode : "pure" } ,
1586
+ error : / i s n o t p u r e / ,
1587
+ } ,
1588
+ {
1589
+ name : "css nesting - throw #7" ,
1590
+ input :
1591
+ "html { div { @media screen and (min-width: 900px) { .a { } @media screen and (min-width: 900px) { color: red } } } }" ,
1592
+ options : { mode : "pure" } ,
1593
+ error : / i s n o t p u r e / ,
1594
+ } ,
1595
+ {
1596
+ name : "css nesting - throw #7" ,
1597
+ input :
1598
+ "html { div { @media screen and (min-width: 900px) { .a { a_value: some-value; } @media screen and (min-width: 900px) { color: red } } } }" ,
1599
+ options : { mode : "pure" } ,
1600
+ error : / i s n o t p u r e / ,
1601
+ } ,
1602
+ {
1603
+ name : "css nesting - throw #8" ,
1604
+ input : `
1605
+ @media screen and (min-width: 900px) {
1606
+ .a { a_value: some-value; }
1607
+ @media screen and (min-width: 900px) {
1608
+ div {
1609
+ color: red
1610
+ }
1611
+ }
1612
+ }` ,
1578
1613
options : { mode : "pure" } ,
1579
1614
error : / i s n o t p u r e / ,
1580
1615
} ,
0 commit comments