Skip to content

Commit ed5d55e

Browse files
authored
fix postcss-normalize-display-values (#1769)
1 parent e164def commit ed5d55e

36 files changed

Lines changed: 194 additions & 715 deletions

plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -382,26 +382,6 @@
382382
display: inline table;
383383
}
384384

385-
.table-cell-flow {
386-
display: table-cell;
387-
display: table-cell flow;
388-
}
389-
390-
.table-caption-flow {
391-
display: table-caption;
392-
display: table-caption flow;
393-
}
394-
395-
.ruby-base-flow {
396-
display: ruby-base;
397-
display: ruby-base flow;
398-
}
399-
400-
.ruby-text-flow {
401-
display: ruby-text;
402-
display: ruby-text flow;
403-
}
404-
405385
.logical-float {
406386
float: left;
407387
}
@@ -745,18 +725,18 @@
745725

746726
.random {
747727
color: rgb(
748-
85,
749-
75,
750-
85
728+
255,
729+
115,
730+
100
751731
);
752732

753-
border-color: rgb(0, 5, 2);
733+
border-color: rgb(121, 118, 0);
754734
}
755735

756736
@media (color-gamut: p3) {
757737
.random {
758738

759-
border-color: color(display-p3 0 0.02032 0.00493);
739+
border-color: color(display-p3 0.4767 0.4634 0);
760740
}
761741
}
762742

plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -382,26 +382,6 @@
382382
display: inline table;
383383
}
384384

385-
.table-cell-flow {
386-
display: table-cell;
387-
display: table-cell flow;
388-
}
389-
390-
.table-caption-flow {
391-
display: table-caption;
392-
display: table-caption flow;
393-
}
394-
395-
.ruby-base-flow {
396-
display: ruby-base;
397-
display: ruby-base flow;
398-
}
399-
400-
.ruby-text-flow {
401-
display: ruby-text;
402-
display: ruby-text flow;
403-
}
404-
405385
.logical-float {
406386
float: left;
407387
}
@@ -750,18 +730,18 @@
750730

751731
.random {
752732
color: rgb(
753-
85,
754-
75,
755-
85
733+
255,
734+
115,
735+
100
756736
);
757737

758-
border-color: rgb(0, 5, 2);
738+
border-color: rgb(121, 118, 0);
759739
}
760740

761741
@media (color-gamut: p3) {
762742
.random {
763743

764-
border-color: color(display-p3 0 0.02032 0.00493);
744+
border-color: color(display-p3 0.4767 0.4634 0);
765745
}
766746
}
767747

plugin-packs/postcss-preset-env/test/basic.autoprefixer.remove.false.expect.css

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -398,26 +398,6 @@
398398
display: inline table;
399399
}
400400

401-
.table-cell-flow {
402-
display: table-cell;
403-
display: table-cell flow;
404-
}
405-
406-
.table-caption-flow {
407-
display: table-caption;
408-
display: table-caption flow;
409-
}
410-
411-
.ruby-base-flow {
412-
display: ruby-base;
413-
display: ruby-base flow;
414-
}
415-
416-
.ruby-text-flow {
417-
display: ruby-text;
418-
display: ruby-text flow;
419-
}
420-
421401
.logical-float {
422402
float: left;
423403
}
@@ -768,18 +748,18 @@
768748

769749
.random {
770750
color: rgb(
771-
85,
772-
75,
773-
85
751+
255,
752+
115,
753+
100
774754
);
775755

776-
border-color: rgb(0, 5, 2);
756+
border-color: rgb(121, 118, 0);
777757
}
778758

779759
@media (color-gamut: p3) {
780760
.random {
781761

782-
border-color: color(display-p3 0 0.02032 0.00493);
762+
border-color: color(display-p3 0.4767 0.4634 0);
783763
}
784764
}
785765

plugin-packs/postcss-preset-env/test/basic.ch126.expect.css

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -264,22 +264,6 @@
264264
display: inline table;
265265
}
266266

267-
.table-cell-flow {
268-
display: table-cell flow;
269-
}
270-
271-
.table-caption-flow {
272-
display: table-caption flow;
273-
}
274-
275-
.ruby-base-flow {
276-
display: ruby-base flow;
277-
}
278-
279-
.ruby-text-flow {
280-
display: ruby-text flow;
281-
}
282-
283267
.logical-float {
284268
float: inline-start;
285269
}
@@ -575,21 +559,21 @@
575559

576560
.random {
577561
color: rgb(
578-
85,
579-
75,
580-
85
562+
255,
563+
115,
564+
100
581565
);
582566

583-
border-color: rgb(0, 5, 2);
567+
border-color: rgb(121, 118, 0);
584568
}
585569

586570
@media (color-gamut: rec2020) {
587571
.random {
588572

589573
border-color: oklch(
590-
10%
591-
40%
592-
156deg
574+
55%
575+
60%
576+
108deg
593577
);
594578
}
595579
}

plugin-packs/postcss-preset-env/test/basic.ch130.expect.css

Lines changed: 7 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -264,22 +264,6 @@
264264
display: inline table;
265265
}
266266

267-
.table-cell-flow {
268-
display: table-cell flow;
269-
}
270-
271-
.table-caption-flow {
272-
display: table-caption flow;
273-
}
274-
275-
.ruby-base-flow {
276-
display: ruby-base flow;
277-
}
278-
279-
.ruby-text-flow {
280-
display: ruby-text flow;
281-
}
282-
283267
.logical-float {
284268
float: inline-start;
285269
}
@@ -575,21 +559,21 @@
575559

576560
.random {
577561
color: rgb(
578-
85,
579-
75,
580-
85
562+
255,
563+
115,
564+
100
581565
);
582566

583-
border-color: rgb(0, 5, 2);
567+
border-color: rgb(121, 118, 0);
584568
}
585569

586570
@media (color-gamut: rec2020) {
587571
.random {
588572

589573
border-color: oklch(
590-
10%
591-
40%
592-
156deg
574+
55%
575+
60%
576+
108deg
593577
);
594578
}
595579
}

plugin-packs/postcss-preset-env/test/basic.ch38.expect.css

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -295,26 +295,6 @@
295295
display: inline table;
296296
}
297297

298-
.table-cell-flow {
299-
display: table-cell;
300-
display: table-cell flow;
301-
}
302-
303-
.table-caption-flow {
304-
display: table-caption;
305-
display: table-caption flow;
306-
}
307-
308-
.ruby-base-flow {
309-
display: ruby-base;
310-
display: ruby-base flow;
311-
}
312-
313-
.ruby-text-flow {
314-
display: ruby-text;
315-
display: ruby-text flow;
316-
}
317-
318298
.logical-float {
319299
float: left;
320300
}
@@ -657,18 +637,18 @@
657637

658638
.random {
659639
color: rgb(
660-
85,
661-
75,
662-
85
640+
255,
641+
115,
642+
100
663643
);
664644

665-
border-color: rgb(0, 5, 2);
645+
border-color: rgb(121, 118, 0);
666646
}
667647

668648
@media (color-gamut: p3) {
669649
.random {
670650

671-
border-color: color(display-p3 0 0.02032 0.00493);
651+
border-color: color(display-p3 0.4767 0.4634 0);
672652
}
673653
}
674654

plugin-packs/postcss-preset-env/test/basic.css

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -267,22 +267,6 @@
267267
display: inline table;
268268
}
269269

270-
.table-cell-flow {
271-
display: table-cell flow;
272-
}
273-
274-
.table-caption-flow {
275-
display: table-caption flow;
276-
}
277-
278-
.ruby-base-flow {
279-
display: ruby-base flow;
280-
}
281-
282-
.ruby-text-flow {
283-
display: ruby-text flow;
284-
}
285-
286270
.logical-float {
287271
float: inline-start;
288272
}

plugin-packs/postcss-preset-env/test/basic.edge16.expect.css

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -382,26 +382,6 @@
382382
display: inline table;
383383
}
384384

385-
.table-cell-flow {
386-
display: table-cell;
387-
display: table-cell flow;
388-
}
389-
390-
.table-caption-flow {
391-
display: table-caption;
392-
display: table-caption flow;
393-
}
394-
395-
.ruby-base-flow {
396-
display: ruby-base;
397-
display: ruby-base flow;
398-
}
399-
400-
.ruby-text-flow {
401-
display: ruby-text;
402-
display: ruby-text flow;
403-
}
404-
405385
.logical-float {
406386
float: left;
407387
}
@@ -739,18 +719,18 @@
739719

740720
.random {
741721
color: rgb(
742-
85,
743-
75,
744-
85
722+
255,
723+
115,
724+
100
745725
);
746726

747-
border-color: rgb(0, 5, 2);
727+
border-color: rgb(121, 118, 0);
748728
}
749729

750730
@media (color-gamut: p3) {
751731
.random {
752732

753-
border-color: color(display-p3 0 0.02032 0.00493);
733+
border-color: color(display-p3 0.4767 0.4634 0);
754734
}
755735
}
756736

0 commit comments

Comments
 (0)