@@ -177,9 +177,9 @@ test('it can generate focus-visible variants', () => {
177
177
} )
178
178
} )
179
179
180
- test ( 'it can generate motion-reduced variants' , ( ) => {
180
+ test ( 'it can generate motion-reduce variants' , ( ) => {
181
181
const input = `
182
- @variants motion-reduced {
182
+ @variants motion-reduce {
183
183
.banana { color: yellow; }
184
184
.chocolate { color: brown; }
185
185
}
@@ -189,8 +189,8 @@ test('it can generate motion-reduced variants', () => {
189
189
.banana { color: yellow; }
190
190
.chocolate { color: brown; }
191
191
@media (prefers-reduced-motion: reduce) {
192
- .motion-reduced \\:banana { color: yellow; }
193
- .motion-reduced \\:chocolate { color: brown; }
192
+ .motion-reduce \\:banana { color: yellow; }
193
+ .motion-reduce \\:chocolate { color: brown; }
194
194
}
195
195
`
196
196
@@ -223,9 +223,9 @@ test('it can generate motion-safe variants', () => {
223
223
} )
224
224
} )
225
225
226
- test ( 'it can generate motion-safe and motion-reduced variants' , ( ) => {
226
+ test ( 'it can generate motion-safe and motion-reduce variants' , ( ) => {
227
227
const input = `
228
- @variants motion-safe, motion-reduced {
228
+ @variants motion-safe, motion-reduce {
229
229
.banana { color: yellow; }
230
230
.chocolate { color: brown; }
231
231
}
@@ -239,8 +239,8 @@ test('it can generate motion-safe and motion-reduced variants', () => {
239
239
.motion-safe\\:chocolate { color: brown; }
240
240
}
241
241
@media (prefers-reduced-motion: reduce) {
242
- .motion-reduced \\:banana { color: yellow; }
243
- .motion-reduced \\:chocolate { color: brown; }
242
+ .motion-reduce \\:banana { color: yellow; }
243
+ .motion-reduce \\:chocolate { color: brown; }
244
244
}
245
245
`
246
246
@@ -250,9 +250,9 @@ test('it can generate motion-safe and motion-reduced variants', () => {
250
250
} )
251
251
} )
252
252
253
- test ( 'motion-reduced variants stack with basic variants' , ( ) => {
253
+ test ( 'motion-reduce variants stack with basic variants' , ( ) => {
254
254
const input = `
255
- @variants motion-reduced , hover {
255
+ @variants motion-reduce , hover {
256
256
.banana { color: yellow; }
257
257
.chocolate { color: brown; }
258
258
}
@@ -264,10 +264,10 @@ test('motion-reduced variants stack with basic variants', () => {
264
264
.hover\\:banana:hover { color: yellow; }
265
265
.hover\\:chocolate:hover { color: brown; }
266
266
@media (prefers-reduced-motion: reduce) {
267
- .motion-reduced \\:banana { color: yellow; }
268
- .motion-reduced \\:chocolate { color: brown; }
269
- .motion-reduced \\:hover\\:banana:hover { color: yellow; }
270
- .motion-reduced \\:hover\\:chocolate:hover { color: brown; }
267
+ .motion-reduce \\:banana { color: yellow; }
268
+ .motion-reduce \\:chocolate { color: brown; }
269
+ .motion-reduce \\:hover\\:banana:hover { color: yellow; }
270
+ .motion-reduce \\:hover\\:chocolate:hover { color: brown; }
271
271
}
272
272
`
273
273
@@ -304,9 +304,9 @@ test('motion-safe variants stack with basic variants', () => {
304
304
} )
305
305
} )
306
306
307
- test ( 'motion-safe and motion-reduced variants stack with basic variants' , ( ) => {
307
+ test ( 'motion-safe and motion-reduce variants stack with basic variants' , ( ) => {
308
308
const input = `
309
- @variants motion-reduced , motion-safe, hover {
309
+ @variants motion-reduce , motion-safe, hover {
310
310
.banana { color: yellow; }
311
311
.chocolate { color: brown; }
312
312
}
@@ -318,10 +318,10 @@ test('motion-safe and motion-reduced variants stack with basic variants', () =>
318
318
.hover\\:banana:hover { color: yellow; }
319
319
.hover\\:chocolate:hover { color: brown; }
320
320
@media (prefers-reduced-motion: reduce) {
321
- .motion-reduced \\:banana { color: yellow; }
322
- .motion-reduced \\:chocolate { color: brown; }
323
- .motion-reduced \\:hover\\:banana:hover { color: yellow; }
324
- .motion-reduced \\:hover\\:chocolate:hover { color: brown; }
321
+ .motion-reduce \\:banana { color: yellow; }
322
+ .motion-reduce \\:chocolate { color: brown; }
323
+ .motion-reduce \\:hover\\:banana:hover { color: yellow; }
324
+ .motion-reduce \\:hover\\:chocolate:hover { color: brown; }
325
325
}
326
326
@media (prefers-reduced-motion: no-preference) {
327
327
.motion-safe\\:banana { color: yellow; }
0 commit comments