@@ -1077,6 +1077,44 @@ const tests = [
1077
1077
&:disabled { animation-name: :local(localAnimation); }
1078
1078
}` ,
1079
1079
} ,
1080
+ {
1081
+ name : "verify ignore comment doesn't affect subsequent rules" ,
1082
+ options : { mode : "pure" } ,
1083
+ input : `/* cssmodules-pure-ignore */
1084
+ .global { color: blue; }
1085
+ .local { color: red; }` ,
1086
+ expected : `/* cssmodules-pure-ignore */
1087
+ .global { color: blue; }
1088
+ :local(.local) { color: red; }` ,
1089
+ } ,
1090
+ {
1091
+ name : "handle ignore comments in media queries" ,
1092
+ options : { mode : "pure" } ,
1093
+ input : `@media screen {
1094
+ /* cssmodules-pure-ignore */
1095
+ .global { color: blue; }
1096
+ .local { color: red; }
1097
+ }` ,
1098
+ expected : `@media screen {
1099
+ /* cssmodules-pure-ignore */
1100
+ .global { color: blue; }
1101
+ :local(.local) { color: red; }
1102
+ }` ,
1103
+ } ,
1104
+ {
1105
+ name : "handle ignore comments with keyframes" ,
1106
+ options : { mode : "pure" } ,
1107
+ input : `/* cssmodules-pure-ignore */
1108
+ @keyframes global-fade {
1109
+ from { opacity: 0; }
1110
+ to { opacity: 1; }
1111
+ }` ,
1112
+ expected : `/* cssmodules-pure-ignore */
1113
+ @keyframes global-fade {
1114
+ from { opacity: 0; }
1115
+ to { opacity: 1; }
1116
+ }` ,
1117
+ } ,
1080
1118
{
1081
1119
name : "handle negative animation-delay in animation shorthand" ,
1082
1120
input : ".foo { animation: 1s -500ms; }" ,
0 commit comments