@@ -88,6 +88,8 @@ ruleTester.run("use-baseline", rule, {
8888 code : ".box { backdrop-filter: blur(10px); }" ,
8989 options : [ { available : 2024 } ] ,
9090 } ,
91+ "@container (min-width: 800px) { a { color: red; } }" ,
92+ "@media (color-gamut: srgb) { a { color: red; } }" ,
9193 ] ,
9294 invalid : [
9395 {
@@ -157,22 +159,6 @@ ruleTester.run("use-baseline", rule, {
157159 } ,
158160 ] ,
159161 } ,
160- {
161- code : "@container (min-width: 800px) { a { color: red; } }" ,
162- errors : [
163- {
164- messageId : "notBaselineAtRule" ,
165- data : {
166- atRule : "container" ,
167- availability : "widely" ,
168- } ,
169- line : 1 ,
170- column : 1 ,
171- endLine : 1 ,
172- endColumn : 11 ,
173- } ,
174- ] ,
175- } ,
176162 {
177163 code : "@view-transition { from-view: a; to-view: b; }\n@container (min-width: 800px) { a { color: red; } }" ,
178164 options : [ { available : "newly" } ] ,
@@ -294,18 +280,18 @@ ruleTester.run("use-baseline", rule, {
294280 ] ,
295281 } ,
296282 {
297- code : "@media (color-gamut: srgb ) { a { color: red; } }" ,
283+ code : "@media (inverted-colors: inverted ) { a { color: red; } }" ,
298284 errors : [
299285 {
300286 messageId : "notBaselineMediaCondition" ,
301287 data : {
302- condition : "color-gamut " ,
288+ condition : "inverted-colors " ,
303289 availability : "widely" ,
304290 } ,
305291 line : 1 ,
306292 column : 9 ,
307293 endLine : 1 ,
308- endColumn : 20 ,
294+ endColumn : 24 ,
309295 } ,
310296 ] ,
311297 } ,
@@ -327,18 +313,18 @@ ruleTester.run("use-baseline", rule, {
327313 ] ,
328314 } ,
329315 {
330- code : "@media (height: 600px) and (color-gamut: srgb ) and (device-posture: folded) { a { color: red; } }" ,
316+ code : "@media (height: 600px) and (inverted-colors: inverted ) and (device-posture: folded) { a { color: red; } }" ,
331317 errors : [
332318 {
333319 messageId : "notBaselineMediaCondition" ,
334320 data : {
335- condition : "color-gamut " ,
321+ condition : "inverted-colors " ,
336322 availability : "widely" ,
337323 } ,
338324 line : 1 ,
339325 column : 29 ,
340326 endLine : 1 ,
341- endColumn : 40 ,
327+ endColumn : 44 ,
342328 } ,
343329 {
344330 messageId : "notBaselineMediaCondition" ,
@@ -347,25 +333,25 @@ ruleTester.run("use-baseline", rule, {
347333 availability : "widely" ,
348334 } ,
349335 line : 1 ,
350- column : 53 ,
336+ column : 61 ,
351337 endLine : 1 ,
352- endColumn : 67 ,
338+ endColumn : 75 ,
353339 } ,
354340 ] ,
355341 } ,
356342 {
357- code : "@media (foo) and (color-gamut: srgb ) { a { color: red; } }" ,
343+ code : "@media (foo) and (inverted-colors: inverted ) { a { color: red; } }" ,
358344 errors : [
359345 {
360346 messageId : "notBaselineMediaCondition" ,
361347 data : {
362- condition : "color-gamut " ,
348+ condition : "inverted-colors " ,
363349 availability : "widely" ,
364350 } ,
365351 line : 1 ,
366352 column : 19 ,
367353 endLine : 1 ,
368- endColumn : 30 ,
354+ endColumn : 34 ,
369355 } ,
370356 ] ,
371357 } ,
0 commit comments