csskit_transform 0.0.26

AST transformation and minification utilities for CSS.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
---
source: crates/csskit_transform/tests/css-minify-tests.rs
expression: fail_log
---
FAIL anchor/0001
-a{position-area:center center}
+a{position-area:center}

FAIL anchor/0002
-a{position-area:center top}
+a{position-area:top}

FAIL anchor/0003
-@position-try --flip{position-area:top}a{position-area:bottom;position-try-fallbacks:--flip}
+a{position-area:bottom;position-try-fallbacks:flip-block}

FAIL anchor/0004
-@position-try --empty{}

FAIL charset/0001
-@charset"UTF-8";a{color:red}
+a{color:red}

FAIL charset/0002
-@charset"ISO-8859-1";@charset"ISO-8859-15";a{color:red}
+@charset "ISO-8859-1";a{color:red}

FAIL colors/0031
-a{color:color-mix(in oklch,rgba(255,255,255,1),var(--foo))}
+a{color:color-mix(in oklch,#fff,var(--foo))}

FAIL colors/0032
-a{color:color-mix(in srgb,hsl(0,100%,50%),var(--foo))}
+a{color:color-mix(in srgb,red,var(--foo))}

FAIL colors/0033
-a{color:color-mix(in oklab,var(--a),var(--b))}
+a{color:color-mix(var(--a),var(--b))}

FAIL colors/0034
-a{border:1px solid blue}
+a{border:1px solid#00f}

FAIL colors/0035
-a{color:color(display-p3 1.2 -.3 .5)}
+a{color:color(display-p3 1.2-.3 .5)}

FAIL comments/0003
-a{color:red}
+/*! important */a{color:red}

FAIL container/0002
-@container(min-width:700px){}

FAIL container/0004
-@container(min-width:700px){a{color:red}}
+@container(width>=700px){a{color:red}}

FAIL container/0005
-@container(max-width:500px){a{color:red}}
+@container(width<=500px){a{color:red}}

FAIL container/0006
-@container sidebar (min-width:700px){a{color:red}}
+@container sidebar (width>=700px){a{color:red}}

FAIL counter-style/0002
-@counter-style empty{}

FAIL duplicates/0001
-a{color:red;color:blue}
+a{color:#00f}

FAIL duplicates/0002
-a{color:red}a{color:blue}
+a{color:#00f}

FAIL duplicates/0003
-a{color:red;font-size:16px}b{margin:0}a{color:blue;font-size:16px}
+b{margin:0}a{color:#00f;font-size:16px}

FAIL duplicates/0004
-h1,h2,h3,h4,h5,h5,h6{color:red}
+h1,h2,h3,h4,h5,h6{color:red}

FAIL duplicates/0006
-a{color:red!important;color:blue}
+a{color:red!important}

FAIL duplicates/0007
-a{color:red;font-size:16px}a{color:red;font-size:16px}
+a{color:red;font-size:16px}

FAIL duplicates/0008
-a{-webkit-transform:rotate(45deg);transform:rotate(45deg)}
+a{transform:rotate(45deg)}

FAIL duplicates/0009
-.nav.item,.footer,.nav.item{color:red}
+.nav .item,.footer{color:red}

FAIL duplicates/0010
-h1,h2{color:red}h2,h1{color:red}
+h1,h2{color:red}

FAIL duplicates/0011
-.foo.bar{color:red}.foo{.bar{color:red}}
+.foo .bar{color:red}

FAIL duplicates/0012
-a{color:red}a{color:red;font-size:1rem}
+a{color:red;font-size:1rem}

FAIL duplicates/0013
-a{--color:blue;--color:red!important}
+a{--color:red !important}

FAIL duplicates/0014
-a{border-top:1px solid blue;border-top:2px solid red}
+a{border-top:2px solid red}

FAIL duplicates/0019
-a{color:var(--x);color:var(--x)}
+a{color:var(--x)}

FAIL empty-rules/0001
-a{}b{color:red}
+b{color:red}

FAIL empty-rules/0002
-a{}b{color:red}
+b{color:red}

FAIL empty-rules/0003
-@media screen{}b{color:red}
+b{color:red}

FAIL empty-rules/0004
-a{color:red;&b{}}
+a{color:red}

FAIL escaping/0013
-[href="#"],[href="/"],[href="file.html"],[href=https\:\/\/example\.com]{color:red}
+[href=\#],[href=\/],[href=file\.html],[href="https://example.com"]{color:red}

FAIL font-face/0002
-@font-face{font-family:"Custom";font-display:swap}
+@font-face{font-family:Custom;font-display:swap}

FAIL font-face/0003
-@font-face{font-family:Custom;src:url("font.woff2")}
+@font-face{font-family:Custom;src:url(font.woff2)}

FAIL font-face/0004
-@font-face{font-family:Custom;src:url(font.woff2)format("woff2")}
+@font-face{font-family:Custom;src:url(font.woff2)format(woff2)}

FAIL font-face/0006
-@font-face{font-family:test;src:local(test);unicode-range:U0 -0FF}
+@font-face{font-family:test;src:local(test);unicode-range:U+??}

FAIL gradients/0001
-a{background:linear-gradient(to bottom,red,blue)}
+a{background:linear-gradient(red,#00f)}

FAIL gradients/0002
-a{background:linear-gradient(180deg,red,blue)}
+a{background:linear-gradient(red,#00f)}

FAIL gradients/0003
-a{background:linear-gradient(to right,red,blue)}
+a{background:linear-gradient(90deg,red,#00f)}

FAIL gradients/0004
-a{background:linear-gradient(red 0%,blue 100%)}
+a{background:linear-gradient(red,#00f)}

FAIL gradients/0005
-a{background:radial-gradient(ellipse at center,red,blue)}
+a{background:radial-gradient(red,#00f)}

FAIL import/0005
-@import url("foo.css")layer(base)supports(foo:bar);
+@import"foo.css"layer(base)supports(foo:bar);

FAIL keyframes/0001
-@keyframes fade{0%{opacity:0}100%{opacity:1}}
+@keyframes fade{0%{opacity:0}to{opacity:1}}

FAIL keyframes/0002
-@keyframes fade{from{opacity:0}50%{opacity:.5}100%{opacity:1}}
+@keyframes fade{0%{opacity:0}50%{opacity:.5}to{opacity:1}}

FAIL layer/0001
-@layer utilities;@layer utilities;a{color:red}
+@layer utilities;a{color:red}

FAIL layer/0002
-@layer base{a{color:blue}}@layer utilities{a{color:red}}@layer base{a{font-weight:bold}}
+@layer base{a{color:#00f;font-weight:700}}@layer utilities{a{color:red}}

FAIL media/0002
-@media screen{@media(width>=768px){a{color:red}}}
+@media screen{@media (width>=768px){a{color:red}}}

FAIL media/0003
-@media all and (width>=500px){a{color:red}}
+@media (width>=500px){a{color:red}}

FAIL media/0004
-@media screen and (width>=768px){a{color:red}}@media screen and (width>=768px){b{margin:0}}
+@media screen and (width>=768px){a{color:red}b{margin:0}}

FAIL media/0005
-@media(min-width:768px){a{color:red}}
+@media (width>=768px){a{color:red}}

FAIL media/0006
-@media(max-width:1024px){a{color:red}}
+@media (width<=1024px){a{color:red}}

FAIL media/0007
-@media(min-height:600px){a{color:red}}
+@media (height>=600px){a{color:red}}

FAIL media/0008
-@media(max-height:900px){a{color:red}}
+@media (height<=900px){a{color:red}}

FAIL media/0009
-@media(min-width:768px)and (max-width:1024px){a{color:red}}
+@media (768px<=width<=1024px){a{color:red}}

FAIL merging/0001
-a{color:red}a{font-size:16px}
+a{color:red;font-size:16px}

FAIL merging/0002
-.a{color:red}.b{color:red}
+.a,.b{color:red}

FAIL merging/0003
-@media screen{a{color:red}}@media screen{b{margin:0}}
+@media screen{a{color:red}b{margin:0}}

FAIL merging/0004
-@media screen{}a{color:red}
+a{color:red}

FAIL merging/0005
-a{color:red}b{color:red;font-size:16px}
+a,b{color:red}b{font-size:16px}

FAIL merging/0006
-@keyframes fade{0%{opacity:0}100%{opacity:1}}@keyframes fade{0%{opacity:.5}100%{opacity:1}}
+@keyframes fade{0%{opacity:.5}to{opacity:1}}

FAIL merging/0008
-@media(width>=1px){a{color:red}}a{color:green}@media(width>=1px){a{background:#0b0}}
+@media (width>=1px){a{color:red}}a{color:green}@media (width>=1px){a{background:#0b0}}

FAIL nesting/0007
-.foo{color:red;&.bar{margin:0}}
+.foo{color:red;.bar{margin:0}}

FAIL nesting/0009
-.foo{color:red;.parent&{margin:0}}
+.foo{color:red;.parent &{margin:0}}

FAIL nesting/0010
-.nav{display:flex}.nav a{color:red}.nav a:hover{margin:0}
+.nav{display:flex;a{color:red;&:hover{margin:0}}}

FAIL nesting/0011
-a{color:red}a:hover{margin:0}
+a{color:red;&:hover{margin:0}}

FAIL nesting/0012
-.card{padding:1rem}.card>.title{color:red}
+.card{padding:1rem;>.title{color:red}}

FAIL nesting/0013
-a{b{color:red}}
+a b{color:red}

FAIL nesting/0014
-a{>b{color:red}}
+a>b{color:red}

FAIL nesting/0015
-a{+b{color:red}}
+a+b{color:red}

FAIL nesting/0016
-a{~b{color:red}}
+a~b{color:red}

FAIL nesting/0018
-a{&:hover{color:red}}
+a:hover{color:red}

FAIL nesting/0019
-.foo{.bar{color:red;font-size:1rem}.bar{color:red;font-size:1rem}}
+.foo .bar{color:red;font-size:1rem}

FAIL page/0003
-@page{}

FAIL scope/0002
-@scope(.card)to (.card.content){a{color:red}}
+@scope(.card)to (.card .content){a{color:red}}

FAIL scope/0003
-@scope(.card){}

FAIL selectors-advanced/0001
-:is(a,b){color:red}
+a,b{color:red}

FAIL selectors-advanced/0005
-button:not(:invalid),fieldset:not(:invalid),form:not(:invalid),input:not(:invalid),select:not(:invalid),textarea:not(:invalid),div:not(:invalid),custom-element:not(:invalid),.foo:not(:invalid){color:red}
+button:valid,fieldset:valid,form:valid,input:valid,select:valid,textarea:valid,div:not(:invalid),custom-element:not(:invalid),.foo:not(:invalid){color:red}

FAIL selectors-advanced/0006
-a:not(:dir(ltr)){color:red}
+a:dir(rtl){color:red}

FAIL selectors-advanced/0007
-a:not(:not(.active)){color:red}
+a.active{color:red}

FAIL selectors-advanced/0008
-input:not(:enabled){color:red}
+input:disabled{color:red}

FAIL selectors-advanced/0009
-input:not(:required){color:red}
+input:optional{color:red}

FAIL selectors-advanced/0010
-a:not(:link),area:not(:link),link:not(:link),.foo:not(:link),h1:not(:link),[href]:not(:link),[href="/foo.html#bar"]:not(:link),a[href]:not(:link),area[href="/foo.html#bar"]:not(:link),:where(:not(:link)),a:where(:not(:link)){color:red}
+a:visited,area:visited,link:visited,.foo:not(:link),h1:not(:link),[href]:not(:link),[href="/foo.html#bar"]:not(:link),a[href]:visited,area[href="/foo.html#bar"]:visited,:where(:not(:link)),a:where(:visited){color:red}

FAIL selectors-advanced/0011
-:is(:link,:visited){color:red}
+:any-link{color:red}

FAIL selectors-advanced/0012
-:is(textarea,input):not(:required){color:red}
+:is(textarea,input):optional{color:red}

FAIL selectors-advanced/0013
-h1,h2,h3,h4,h5,h6{color:red}
+:heading{color:red}

FAIL selectors-advanced/0014
-:is(h2,a,h1,.foo,:visited,p,.example,.bar){color:red}
+:is(.bar,.example,.foo,:visited,a,h1,h2,p){color:red}

FAIL selectors-advanced/0015
-:is(h1,h1,h2){color:red}
+:is(h1,h2){color:red}

FAIL selectors-advanced/0016
-:is(:visited,:link,:where(.link)){color:red}
+:is(:any-link,:where(.link)){color:red}

FAIL selectors-advanced/0017
-:is(h2,:link,h1,:visited,h1,:any-link,div){color:red}
+:is(:any-link,div,h1,h2){color:red}

FAIL selectors/0001
-a:nth-child(2n+ 1){color:red}
+a:nth-child(odd){color:red}

FAIL selectors/0002
-a:nth-child(2n+ 0){color:red}
+a:nth-child(2n){color:red}

FAIL selectors/0003
-a:nth-child(+ 5){color:red}
+a:nth-child(5){color:red}

FAIL selectors/0004
-a:nth-child(0n+ 3){color:red}
+a:nth-child(3){color:red}

FAIL selectors/0006
-a:nth-child(1){color:red}
+a:first-child{color:red}

FAIL selectors/0007
-a:nth-last-child(1){color:red}
+a:last-child{color:red}

FAIL selectors/0008
-a:nth-child(1n){color:red}
+a:nth-child(n){color:red}

FAIL selectors/0009
-a:nth-of-type(1){color:red}
+a:first-of-type{color:red}

FAIL selectors/0010
-a:nth-last-of-type(1){color:red}
+a:last-of-type{color:red}

FAIL selectors/0011
-a::before{content:"x"}
+a:before{content:"x"}

FAIL selectors/0013
-*#id{color:red}
+#id{color:red}

FAIL selectors/0014
-a[href="foo"]{color:red}
+a[href=foo]{color:red}

FAIL shorthands/0001
-a{margin:10px 10px 10px 10px}
+a{margin:10px}

FAIL shorthands/0002
-a{margin:10px 20px 10px 20px}
+a{margin:10px 20px}

FAIL shorthands/0003
-a{margin:10px 20px 30px 20px}
+a{margin:10px 20px 30px}

FAIL shorthands/0004
-a{background:none}
+a{background:0 0}

FAIL shorthands/0006
-a{inset:0 0 0 0}
+a{inset:0}

FAIL shorthands/0007
-a{padding:10px 10px 10px 10px}
+a{padding:10px}

FAIL shorthands/0008
-a{overflow-x:hidden;overflow-y:hidden}
+a{overflow:hidden}

FAIL shorthands/0009
-a{row-gap:10px;column-gap:10px}
+a{gap:10px}

FAIL shorthands/0010
-a{flex-grow:1;flex-shrink:0;flex-basis:auto}
+a{flex:1 0 auto}

FAIL shorthands/0011
-a{outline-width:1px;outline-style:solid;outline-color:red}
+a{outline:1px solid red}

FAIL shorthands/0012
-a{border-top-left-radius:5px;border-top-right-radius:5px;border-bottom-right-radius:5px;border-bottom-left-radius:5px}
+a{border-radius:5px}

FAIL shorthands/0013
-a{margin-top:10px;margin-right:20px;margin-bottom:10px;margin-left:20px}
+a{margin:10px 20px}

FAIL shorthands/0014
-a{text-decoration-line:underline;text-decoration-style:solid;text-decoration-color:red}
+a{text-decoration:underline red}

FAIL shorthands/0015
-a{padding-top:5px;padding-right:10px;padding-bottom:5px;padding-left:10px}
+a{padding:5px 10px}

FAIL shorthands/0016
-a{border-top-width:1px;border-right-width:1px;border-bottom-width:1px;border-left-width:1px;border-top-style:solid;border-right-style:solid;border-bottom-style:solid;border-left-style:solid;border-top-color:red;border-right-color:red;border-bottom-color:red;border-left-color:red}
+a{border:1px solid red}

FAIL shorthands/0017
-a{padding:5px 10px 5px 10px}
+a{padding:5px 10px}

FAIL shorthands/0018
-a{padding:5px 10px 15px 10px}
+a{padding:5px 10px 15px}

FAIL shorthands/0019
-a{border-radius:5px 10px 5px 10px}
+a{border-radius:5px 10px}

FAIL shorthands/0020
-a{border-radius:10px 10px 10px 10px/5px 5px 5px 5px}
+a{border-radius:10px/5px}

FAIL shorthands/0021
-a{inset:10px 20px 10px 20px}
+a{inset:10px 20px}

FAIL shorthands/0022
-a{margin:10px 10px}
+a{margin:10px}

FAIL shorthands/0023
-a{align-items:center;justify-items:center}
+a{place-items:center}

FAIL shorthands/0024
-a{align-content:center;justify-content:center}
+a{place-content:center}

FAIL shorthands/0025
-a{align-self:center;justify-self:center}
+a{place-self:center}

FAIL shorthands/0026
-a{column-gap:10px;row-gap:20px}
+a{gap:20px 10px}

FAIL shorthands/0027
-a{column-width:auto;column-count:3}
+a{columns:auto 3}

FAIL shorthands/0028
-a{list-style-type:disc;list-style-position:inside;list-style-image:none}
+a{list-style:inside}

FAIL shorthands/0029
-a{background-color:red;background-image:none;background-repeat:repeat;background-position:0% 0%;background-attachment:scroll}
+a{background:red}

FAIL shorthands/0030
-a{font-style:italic;font-weight:bold;font-size:16px;line-height:1.5;font-family:Arial,sans-serif}
+a{font:italic 700 16px/1.5 Arial,sans-serif}

FAIL shorthands/0031
-a{transition-property:opacity;transition-duration:.3s;transition-timing-function:ease;transition-delay:0s}
+a{transition:opacity .3s}

FAIL shorthands/0032
-a{animation-name:slide;animation-duration:1s;animation-timing-function:ease;animation-delay:0s;animation-iteration-count:1;animation-direction:normal;animation-fill-mode:none;animation-play-state:running}
+a{animation:slide 1s}

FAIL shorthands/0033
-a{border:medium solid red}
+a{border:solid red}

FAIL shorthands/0034
-a{background:url(bg.png)0% 0% repeat scroll red}
+a{background:red url(bg.png)}

FAIL shorthands/0035
-a{font:normal normal 16px/1.5 Arial,sans-serif}
+a{font:16px/1.5 Arial,sans-serif}

FAIL shorthands/0037
-a{margin:0 auto 0 auto}
+a{margin:0 auto}

FAIL shorthands/0038
-a{border-color:red red red red}
+a{border-color:red}

FAIL shorthands/0039
-a{gap:10px 10px}
+a{gap:10px}

FAIL shorthands/0040
-a{overflow:hidden hidden}
+a{overflow:hidden}

FAIL shorthands/0041
-a{border-image:url(border.png)30 round;border-width:1px;border-style:solid;border-color:red}
+a{border:1px solid red;border-image:url(border.png) 30 round}

FAIL shorthands/0042
-a{border-width:1px;border-style:solid;border-color:red;border-image:url(border.png)30 round}
+a{border:1px solid red;border-image:url(border.png) 30 round}

FAIL shorthands/0043
-a{border-image:url(border.png)30 round;border:1px solid red}
+a{border:1px solid red}

FAIL shorthands/0044
-a{border-image-source:url(border.png);border-image-slice:30;border-image-repeat:round;border-width:4px;border-style:solid;border-color:#0000}
+a{border:4px solid transparent;border-image:url(border.png) 30 round}

FAIL shorthands/0045
-a{font-variant-ligatures:no-common-ligatures;font-style:italic;font-weight:bold;font-size:16px;line-height:1.5;font-family:Arial,sans-serif}
+a{font:italic 700 16px/1.5 Arial,sans-serif;font-variant-ligatures:no-common-ligatures}

FAIL shorthands/0046
-a{font-style:italic;font-weight:bold;font-size:16px;line-height:1.5;font-family:Arial,sans-serif;font-feature-settings:"smcp"1}
+a{font:italic 700 16px/1.5 Arial,sans-serif;font-feature-settings:"smcp" 1}

FAIL shorthands/0047
-a{font-variant-numeric:tabular-nums;font:italic 16px/1.5 Arial,sans-serif}
+a{font:italic 16px/1.5 Arial,sans-serif}

FAIL shorthands/0048
-a{font-style:normal;font-weight:400;font-size:14px;line-height:1.4;font-family:Georgia,serif;font-kerning:none}
+a{font:14px/1.4 Georgia,serif;font-kerning:none}

FAIL shorthands/0049
-a{mask-border:url(mask.png)25 / 10px round;mask-image:linear-gradient(black,transparent);mask-size:cover;mask-repeat:no-repeat}
+a{mask:linear-gradient(#000,transparent) no-repeat/cover;mask-border:url(mask.png) 25/10px round}

FAIL shorthands/0050
-a{mask-image:linear-gradient(black,transparent);mask-repeat:no-repeat;mask-border:url(mask.png)25 round}
+a{mask:linear-gradient(#000,transparent) no-repeat;mask-border:url(mask.png) 25 round}

FAIL shorthands/0051
-a{mask-border:url(mask.png)25 round;mask:linear-gradient(black,transparent)}
+a{mask:linear-gradient(#000,transparent)}

FAIL shorthands/0052
-a{font-variation-settings:"wght"600,"wdth"75;font-style:normal;font-weight:400;font-size:18px;line-height:1.6;font-family:Inter,sans-serif}
+a{font:18px/1.6 Inter,sans-serif;font-variation-settings:"wght" 600,"wdth" 75}

FAIL shorthands/0054
-a{font-weight:bold;font:14px serif}
+a{font:14px serif}

FAIL shorthands/0056
-a{margin-top:10px!important;margin-right:20px;margin-bottom:10px;margin-left:20px}
+a{margin:10px 20px;margin-top:10px!important}

FAIL shorthands/0061
-@property --pt{syntax:"<length>";inherits:false;initial-value:0px}@property --pr{syntax:"<length>";inherits:false;initial-value:0px}@property --pb{syntax:"<length>";inherits:false;initial-value:0px}@property --pl{syntax:"<length>";inherits:false;initial-value:0px}a{padding-top:var(--pt);padding-right:var(--pr);padding-bottom:var(--pb);padding-left:var(--pl)}
+@property --pt{syntax:"<length>";inherits:false;initial-value:0px}@property --pr{syntax:"<length>";inherits:false;initial-value:0px}@property --pb{syntax:"<length>";inherits:false;initial-value:0px}@property --pl{syntax:"<length>";inherits:false;initial-value:0px}a{padding:var(--pt) var(--pr) var(--pb) var(--pl)}

FAIL shorthands/0062
-@property --bw{syntax:"<length>";inherits:false;initial-value:0px}@property --bs{syntax:"<custom-ident>";inherits:false;initial-value:none}@property --bc{syntax:"<color>";inherits:false;initial-value:black}a{border-width:var(--bw);border-style:var(--bs);border-color:var(--bc)}
+@property --bw{syntax:"<length>";inherits:false;initial-value:0px}@property --bs{syntax:"<custom-ident>";inherits:false;initial-value:none}@property --bc{syntax:"<color>";inherits:false;initial-value:#000}a{border:var(--bw) var(--bs) var(--bc)}

FAIL shorthands/0063
-a{top:0;right:0;bottom:0;left:0}
+a{inset:0}

FAIL shorthands/0064
-a{margin-inline-start:10px;margin-inline-end:10px}
+a{margin-inline:10px}

FAIL shorthands/0065
-a{position-try-order:normal;position-try-fallbacks:flip-block,--custom}
+a{position-try:flip-block,--custom}

FAIL shorthands/0066
-a{border-top:1px solid blue;border:2px solid red}
+a{border:2px solid red}

FAIL shorthands/0067
-a{border-block-start:1px solid blue;border-block:2px solid red}
+a{border-block:2px solid red}

FAIL shorthands/0068
-a{padding-inline-start:10px;padding-inline:20px}
+a{padding-inline:20px}

FAIL shorthands/0069
-a{margin-top:10px;margin:20px}
+a{margin:20px}

FAIL shorthands/0070
-a{border-top-width:1px;border-width:2px}
+a{border-width:2px}

FAIL shorthands/0071
-a{border-top-color:blue;border-top:2px solid red}
+a{border-top:2px solid red}

FAIL shorthands/0072
-a{inset-block-start:10px;inset-block:20px}
+a{inset-block:20px}

FAIL shorthands/0073
-a{transition:all 0s}
+a{transition:all}

FAIL shorthands/0074
-a{flex:0 0 0}
+a{flex:0 0}

FAIL supports/0001
-@supports(hanging-punctuation:first){a{hanging-punctuation:first}}
+@supports (hanging-punctuation:first){a{hanging-punctuation:first}}

FAIL supports/0002
-@supports(display:grid){}a{color:red}
+a{color:red}

FAIL supports/0003
-@supports(display:grid){a{display:grid}}
+a{display:grid}

FAIL supports/0004
-@supports(display:flex){a{display:flex}b{color:red}}
+a{display:flex}b{color:red}

FAIL transforms/0001
-a{transform:translate3d(10px,0,0)}
+a{transform:translate(10px)}

FAIL transforms/0002
-a{transform:translate(0,20px)}
+a{transform:translateY(20px)}

FAIL transforms/0003
-a{transform:scale(1.5,1.5)}
+a{transform:scale(1.5)}

FAIL transforms/0004
-a{transform:rotateZ(45deg)}
+a{transform:rotate(45deg)}

FAIL transforms/0005
-a{transform:scale3d(1.5,2,1)}
+a{transform:scale(1.5,2)}

FAIL transforms/0006
-a{transform:rotate3d(0,1,0,30deg)}
+a{transform:rotateY(30deg)}

FAIL transforms/0007
-a{transform:scale(1.5,1)}
+a{transform:scaleX(1.5)}

FAIL transforms/0008
-a{transform:translate3d(0,0,5px)}
+a{transform:translateZ(5px)}

FAIL transforms/0009
-a{transform:rotate3d(1,0,0,20deg)}
+a{transform:rotateX(20deg)}

FAIL transforms/0010
-a{transform:scale(50%)}
+a{transform:scale(.5)}

FAIL transforms/0011
-a{scale:200%}
+a{scale:2}

FAIL values/0001
-a{font-weight:bold}
+a{font-weight:700}

FAIL values/0002
-a{font-weight:normal}
+a{font-weight:400}

FAIL values/0003
-a{background:url("image.png")}
+a{background:url(image.png)}

FAIL values/0014
-a{width:calc(calc(100% - 20px)+ 10px)}
+a{width:calc(100% - 10px)}

FAIL values/0015
-a{width:calc(100px * 2)}
+a{width:200px}

FAIL values/0016
-a{width:calc(50px + 50px)}
+a{width:100px}

FAIL values/0017
-a{width:calc(((75.37% - 63.5px)- 900px)+ (2 * 100px))}
+a{width:calc(75.37% - 763.5px)}

FAIL values/0019
-a{grid-template-areas:"head  head""nav   main""foot  ...."}
+a{grid-template-areas:"head head""nav main""foot ."}

FAIL values/0020
-a{background-position:center center}
+a{background-position:50%}

FAIL values/0021
-a{width:calc(100% / 3)}
+a{width:calc(100%/3)}

FAIL values/0022
-a{display:block flow}
+a{display:block}

FAIL values/0023
-a{transition:color cubic-bezier(0,0,1,1)}
+a{transition:color linear}

FAIL values/0024
-a{transition:color cubic-bezier(.25,.1,.25,1)}
+a{transition:color ease}

FAIL values/0025
-a{background-repeat:no-repeat no-repeat}
+a{background-repeat:no-repeat}

FAIL values/0026
-a{background-repeat:repeat no-repeat}
+a{background-repeat:repeat-x}

FAIL values/0027
-a{transform:rotate(.25turn)}
+a{transform:rotate(90deg)}

FAIL values/0028
-a{min-width:initial}
+a{min-width:auto}

FAIL values/0031
-a{font-family:"Helvetica Neue"}
+a{font-family:Helvetica Neue}

FAIL values/0032
-a{font-family:Helvetica,Arial,Helvetica,sans-serif}
+a{font-family:Helvetica,Arial,sans-serif}

FAIL values/0033
-a{display:inline flow-root}
+a{display:inline-block}

FAIL values/0034
-a{animation:fade steps(1,start)}
+a{animation:fade step-start}

FAIL values/0035
-a{background-position:left top}
+a{background-position:0 0}

FAIL values/0036
-a{transition:color cubic-bezier(.42,0,1,1)}
+a{transition:color ease-in}

FAIL values/0037
-a{transition:color cubic-bezier(0,0,.58,1)}
+a{transition:color ease-out}

FAIL values/0038
-a{background-repeat:no-repeat repeat}
+a{background-repeat:repeat-y}

FAIL values/0039
-a{width:calc(100px * 1)}
+a{width:100px}

FAIL values/0040
-a{width:calc(100px + 0px)}
+a{width:100px}

FAIL values/0041
-a{margin-left:calc(-1 * (-10px))}
+a{margin-left:10px}

FAIL values/0042
-a{width:calc(1 / (1 / 50px))}
+a{width:50px}

FAIL values/0043
-a{width:calc(calc(10px + 20px)+ calc(30px + 40px))}
+a{width:100px}

FAIL values/0044
-a{width:calc(2 * 3 * 10px)}
+a{width:60px}

FAIL values/0045
-a{width:calc(2 * (50px + 25px))}
+a{width:150px}

FAIL values/0046
-a{width:calc(50% + 25%)}
+a{width:75%}

FAIL values/0047
-a{line-height:calc(10 / 2)}
+a{line-height:5}

FAIL values/0048
-a{width:calc(50px - 50px)}
+a{width:0}

FAIL values/0049
-a{width:calc(100px * 0)}
+a{width:0}

FAIL values/0050
-a{width:calc(pi * 100px)}
+a{width:314.159px}

FAIL values/0051
-a{width:calc(e * 100px)}
+a{width:271.828px}

FAIL values/0052
-a{width:min(10px,20px)}
+a{width:10px}

FAIL values/0053
-a{width:calc(1in + 0px)}
+a{width:96px}

FAIL values/0054
-a{width:calc(100px)}
+a{width:100px}

FAIL values/0055
-a{width:calc(100px / 4)}
+a{width:25px}

FAIL values/0056
-a{width:calc(100% - 50px + 0%)}
+a{width:calc(100% - 50px)}

FAIL values/0057
-a{--brand-color:rgb(0 0 0)}
+a{--brand-color: rgb(0 0 0)}

FAIL values/0058
-a{--foo:;color:var(--foo,red)}
+a{--foo: ;color:var(--foo,red)}

FAIL values/0062
-a{width:clamp(10px,10px,10px)}
+a{width:10px}

FAIL values/0063
-a{width:max(10px,20px)}
+a{width:20px}

FAIL values/0064
-a{opacity:initial}
+a{opacity:1}

FAIL values/0066
-a{z-index:initial}
+a{z-index:auto}

FAIL values/0067
-a{margin:initial}
+a{margin:0}

FAIL values/0070
-@property --brand-color{syntax:"<color>";inherits:false;initial-value:#000}a{--brand-color:rgb(0 0 0)}
+@property --brand-color{syntax:"<color>";inherits:false;initial-value:#000}a{--brand-color:#000}

FAIL whitespace/0012
-a{width:calc(100% * 2)}
+a{width:calc(100%*2)}

FAIL whitespace/0015
-a{font:16px / 1.5 sans-serif}
+a{font:16px/1.5 sans-serif}