diff --git a/plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css b/plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css index aca4ef6cc..25dc5813b 100644 --- a/plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.autoprefixer.expect.css @@ -382,26 +382,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -745,18 +725,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css b/plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css index e15152f6c..0a0253604 100644 --- a/plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.autoprefixer.false.expect.css @@ -382,26 +382,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -750,18 +730,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.autoprefixer.remove.false.expect.css b/plugin-packs/postcss-preset-env/test/basic.autoprefixer.remove.false.expect.css index 72812537e..708d714d5 100644 --- a/plugin-packs/postcss-preset-env/test/basic.autoprefixer.remove.false.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.autoprefixer.remove.false.expect.css @@ -398,26 +398,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -768,18 +748,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.ch126.expect.css b/plugin-packs/postcss-preset-env/test/basic.ch126.expect.css index eb4c1d3a3..eab4ba26f 100644 --- a/plugin-packs/postcss-preset-env/test/basic.ch126.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.ch126.expect.css @@ -264,22 +264,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text flow; -} - .logical-float { float: inline-start; } @@ -575,21 +559,21 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: rec2020) { .random { border-color: oklch( - 10% - 40% - 156deg + 55% + 60% + 108deg ); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.ch130.expect.css b/plugin-packs/postcss-preset-env/test/basic.ch130.expect.css index ffe3d1400..4f212ae82 100644 --- a/plugin-packs/postcss-preset-env/test/basic.ch130.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.ch130.expect.css @@ -264,22 +264,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text flow; -} - .logical-float { float: inline-start; } @@ -575,21 +559,21 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: rec2020) { .random { border-color: oklch( - 10% - 40% - 156deg + 55% + 60% + 108deg ); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.ch38.expect.css b/plugin-packs/postcss-preset-env/test/basic.ch38.expect.css index befc913f5..cb8973d5e 100644 --- a/plugin-packs/postcss-preset-env/test/basic.ch38.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.ch38.expect.css @@ -295,26 +295,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -657,18 +637,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.css b/plugin-packs/postcss-preset-env/test/basic.css index 959147f07..17bb1c808 100644 --- a/plugin-packs/postcss-preset-env/test/basic.css +++ b/plugin-packs/postcss-preset-env/test/basic.css @@ -267,22 +267,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text flow; -} - .logical-float { float: inline-start; } diff --git a/plugin-packs/postcss-preset-env/test/basic.edge16.expect.css b/plugin-packs/postcss-preset-env/test/basic.edge16.expect.css index 5b319352d..b1532584d 100644 --- a/plugin-packs/postcss-preset-env/test/basic.edge16.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.edge16.expect.css @@ -382,26 +382,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -739,18 +719,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.expect.css b/plugin-packs/postcss-preset-env/test/basic.expect.css index 7558f50a3..5dc044053 100644 --- a/plugin-packs/postcss-preset-env/test/basic.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.expect.css @@ -398,26 +398,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -763,18 +743,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.ff49.expect.css b/plugin-packs/postcss-preset-env/test/basic.ff49.expect.css index 9fe67bab8..4b37da2b0 100644 --- a/plugin-packs/postcss-preset-env/test/basic.ff49.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.ff49.expect.css @@ -299,26 +299,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -656,18 +636,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.ff66.expect.css b/plugin-packs/postcss-preset-env/test/basic.ff66.expect.css index 09e73feae..28f0f54de 100644 --- a/plugin-packs/postcss-preset-env/test/basic.ff66.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.ff66.expect.css @@ -294,26 +294,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: inline-start; } @@ -651,18 +631,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.hebrew.all-browsers-have-support.expect.css b/plugin-packs/postcss-preset-env/test/basic.hebrew.all-browsers-have-support.expect.css index df366779e..e4f03fb4f 100644 --- a/plugin-packs/postcss-preset-env/test/basic.hebrew.all-browsers-have-support.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.hebrew.all-browsers-have-support.expect.css @@ -283,26 +283,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: right; } @@ -613,18 +593,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.hebrew.expect.css b/plugin-packs/postcss-preset-env/test/basic.hebrew.expect.css index a524d2fbe..23671a8dc 100644 --- a/plugin-packs/postcss-preset-env/test/basic.hebrew.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.hebrew.expect.css @@ -396,26 +396,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: right; } @@ -759,18 +739,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.ie10.expect.css b/plugin-packs/postcss-preset-env/test/basic.ie10.expect.css index 6a3ae7bf2..4a838de86 100644 --- a/plugin-packs/postcss-preset-env/test/basic.ie10.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.ie10.expect.css @@ -416,26 +416,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -783,18 +763,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.nesting.false.expect.css b/plugin-packs/postcss-preset-env/test/basic.nesting.false.expect.css index e69db71ec..47e2f7548 100644 --- a/plugin-packs/postcss-preset-env/test/basic.nesting.false.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.nesting.false.expect.css @@ -389,26 +389,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -753,18 +733,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.nesting.true.expect.css b/plugin-packs/postcss-preset-env/test/basic.nesting.true.expect.css index 3637d4659..b46392399 100644 --- a/plugin-packs/postcss-preset-env/test/basic.nesting.true.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.nesting.true.expect.css @@ -279,22 +279,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text flow; -} - .logical-float { float: inline-start; } diff --git a/plugin-packs/postcss-preset-env/test/basic.op_mini.expect.css b/plugin-packs/postcss-preset-env/test/basic.op_mini.expect.css index 191f5a347..2116368b2 100644 --- a/plugin-packs/postcss-preset-env/test/basic.op_mini.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.op_mini.expect.css @@ -381,26 +381,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -742,18 +722,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.preserve.false.expect.css b/plugin-packs/postcss-preset-env/test/basic.preserve.false.expect.css index 88e77f553..c961cf60c 100644 --- a/plugin-packs/postcss-preset-env/test/basic.preserve.false.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.preserve.false.expect.css @@ -507,22 +507,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline-table; } -.table-cell-flow { - display: table-cell; -} - -.table-caption-flow { - display: table-caption; -} - -.ruby-base-flow { - display: ruby-base; -} - -.ruby-text-flow { - display: ruby-text; -} - .logical-float { float: left; } @@ -872,18 +856,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.preserve.true.expect.css b/plugin-packs/postcss-preset-env/test/basic.preserve.true.expect.css index 92bc15843..c41da35af 100644 --- a/plugin-packs/postcss-preset-env/test/basic.preserve.true.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.preserve.true.expect.css @@ -662,26 +662,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -1260,9 +1240,9 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); color: rgb( random(--r, 0, 255, 5), @@ -1270,14 +1250,14 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe random(--b, 0, 255, 5) ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); border-color: oklch( - 10% - 40% - 156deg + 55% + 60% + 108deg ); border-color: oklch( diff --git a/plugin-packs/postcss-preset-env/test/basic.safari15.expect.css b/plugin-packs/postcss-preset-env/test/basic.safari15.expect.css index 39fc1c729..00f1a3603 100644 --- a/plugin-packs/postcss-preset-env/test/basic.safari15.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.safari15.expect.css @@ -271,22 +271,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text flow; -} - .logical-float { float: inline-start; } @@ -638,18 +622,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.stage0-ff49.expect.css b/plugin-packs/postcss-preset-env/test/basic.stage0-ff49.expect.css index efcac46ec..34c0448b1 100644 --- a/plugin-packs/postcss-preset-env/test/basic.stage0-ff49.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.stage0-ff49.expect.css @@ -297,26 +297,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -652,18 +632,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.stage0-ff66.expect.css b/plugin-packs/postcss-preset-env/test/basic.stage0-ff66.expect.css index 630287a9a..5aee54b38 100644 --- a/plugin-packs/postcss-preset-env/test/basic.stage0-ff66.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.stage0-ff66.expect.css @@ -292,26 +292,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: inline-start; } @@ -647,18 +627,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.stage0.expect.css b/plugin-packs/postcss-preset-env/test/basic.stage0.expect.css index fe51ded2b..11b4b09c7 100644 --- a/plugin-packs/postcss-preset-env/test/basic.stage0.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.stage0.expect.css @@ -396,26 +396,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -759,18 +739,18 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.supports-query.expect.css b/plugin-packs/postcss-preset-env/test/basic.supports-query.expect.css index 1aab3ab60..e4917595d 100644 --- a/plugin-packs/postcss-preset-env/test/basic.supports-query.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.supports-query.expect.css @@ -290,26 +290,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } @@ -642,18 +622,18 @@ .random { color: rgb( - 85, - 75, - 85 + 255, + 115, + 100 ); - border-color: rgb(0, 5, 2); + border-color: rgb(121, 118, 0); } @media (color-gamut: p3) { .random { - border-color: color(display-p3 0 0.02032 0.00493); + border-color: color(display-p3 0.4767 0.4634 0); } } diff --git a/plugin-packs/postcss-preset-env/test/basic.vendors-1.expect.css b/plugin-packs/postcss-preset-env/test/basic.vendors-1.expect.css index efb94ab86..a6662a054 100644 --- a/plugin-packs/postcss-preset-env/test/basic.vendors-1.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.vendors-1.expect.css @@ -402,26 +402,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } diff --git a/plugin-packs/postcss-preset-env/test/basic.vendors-2.expect.css b/plugin-packs/postcss-preset-env/test/basic.vendors-2.expect.css index efb94ab86..a6662a054 100644 --- a/plugin-packs/postcss-preset-env/test/basic.vendors-2.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.vendors-2.expect.css @@ -402,26 +402,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } diff --git a/plugin-packs/postcss-preset-env/test/basic.vendors-3.expect.css b/plugin-packs/postcss-preset-env/test/basic.vendors-3.expect.css index 956bdc701..9cf81bb25 100644 --- a/plugin-packs/postcss-preset-env/test/basic.vendors-3.expect.css +++ b/plugin-packs/postcss-preset-env/test/basic.vendors-3.expect.css @@ -401,26 +401,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text; - display: ruby-text flow; -} - .logical-float { float: left; } diff --git a/plugin-packs/postcss-preset-env/test/layers-basic.css b/plugin-packs/postcss-preset-env/test/layers-basic.css index d7e512a92..1317af69f 100644 --- a/plugin-packs/postcss-preset-env/test/layers-basic.css +++ b/plugin-packs/postcss-preset-env/test/layers-basic.css @@ -284,22 +284,6 @@ display: inline table; } -.table-cell-flow { - display: table-cell flow; -} - -.table-caption-flow { - display: table-caption flow; -} - -.ruby-base-flow { - display: ruby-base flow; -} - -.ruby-text-flow { - display: ruby-text flow; -} - .color-function { prop-1: color(display-p3 0.00000 0.51872 0.36985); prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)'; diff --git a/plugin-packs/postcss-preset-env/test/layers-basic.expect.css b/plugin-packs/postcss-preset-env/test/layers-basic.expect.css index 7cbb08b3d..8ea8e3529 100644 --- a/plugin-packs/postcss-preset-env/test/layers-basic.expect.css +++ b/plugin-packs/postcss-preset-env/test/layers-basic.expect.css @@ -552,26 +552,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n display: inline table; } -.table-cell-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: ruby-text; - display: ruby-text flow; -} - .color-function:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { prop-1: rgb(0, 129, 96); prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)'; diff --git a/plugin-packs/postcss-preset-env/test/layers-basic.preserve.true.expect.css b/plugin-packs/postcss-preset-env/test/layers-basic.preserve.true.expect.css index d3d5f7c52..e8db3474c 100644 --- a/plugin-packs/postcss-preset-env/test/layers-basic.preserve.true.expect.css +++ b/plugin-packs/postcss-preset-env/test/layers-basic.preserve.true.expect.css @@ -665,26 +665,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n display: inline table; } -.table-cell-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: table-cell; - display: table-cell flow; -} - -.table-caption-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: table-caption; - display: table-caption flow; -} - -.ruby-base-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: ruby-base; - display: ruby-base flow; -} - -.ruby-text-flow:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { - display: ruby-text; - display: ruby-text flow; -} - .color-function:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#) { prop-1: rgb(0, 129, 96); prop-2: 'color(display-p3 0.02472 0.01150 0.00574 / 1)'; diff --git a/plugins/postcss-normalize-display-values/CHANGELOG.md b/plugins/postcss-normalize-display-values/CHANGELOG.md index 1f40adc3d..d3d3c6b45 100644 --- a/plugins/postcss-normalize-display-values/CHANGELOG.md +++ b/plugins/postcss-normalize-display-values/CHANGELOG.md @@ -1,5 +1,10 @@ # Changes to PostCSS Normalize Display Values +### Unreleased (patch) + +- Remove various combinations that are not part of the specification +- Allow keywords in various orders + ### 5.0.0 _January 14, 2026_ diff --git a/plugins/postcss-normalize-display-values/dist/index.mjs b/plugins/postcss-normalize-display-values/dist/index.mjs index 06ae293f2..16102b937 100644 --- a/plugins/postcss-normalize-display-values/dist/index.mjs +++ b/plugins/postcss-normalize-display-values/dist/index.mjs @@ -1 +1 @@ -import e from"postcss-value-parser";var l=new Map([["block,flex","flex"],["block,flow","block"],["block,flow-root","flow-root"],["block,grid","grid"],["block,table","table"],["inline,block","inline-block"],["inline,flex","inline-flex"],["inline,flow","inline"],["inline,flow,list-item","inline list-item"],["inline,flow-root","inline-block"],["inline,grid","inline-grid"],["inline,ruby","ruby"],["inline,table","inline-table"],["list-item,block,flow","list-item"],["ruby-base,flow","ruby-base"],["ruby-text,flow","ruby-text"],["run-in,flow","run-in"],["table-caption,flow","table-caption"],["table-cell,flow","table-cell"]]);function transform(n){if(!n.trim())return n;const{nodes:i}=e(n);if(i.length<=1)return n;const t=i.filter(e=>"word"===e.type).map(e=>e.value.toLowerCase());if(t.length<=1)return n;const o=l.get(t.join(","));return o||n}const n=/^display$/i,i=/\b\s\b/,creator=e=>{const l=!("preserve"in Object(e))||Boolean(e?.preserve);return{postcssPlugin:"postcss-normalize-display-values",Declaration(e){if(!n.test(e.prop))return;const t=e.value;if(!t)return;if(!i.test(t))return;const o=transform(t);e.value!==o&&(e.cloneBefore({value:o}),l||e.remove())}}};creator.postcss=!0;export{creator as default,creator as"module.exports"}; +import i from"postcss-value-parser";var l=new Map([["flow","block"],["block,flow","block"],["flow,block","block"],["flow-root,block","flow-root"],["block,flow-root","flow-root"],["inline,flow","inline"],["flow,inline","inline"],["inline,flow-root","inline-block"],["flow-root,inline","inline-block"],["run-in,flow","run-in"],["flow,run-in","run-in"],["block,list-item","list-item"],["list-item,block","list-item"],["flow,list-item","list-item"],["list-item,flow","list-item"],["block,flow,list-item","list-item"],["block,list-item,flow","list-item"],["list-item,block,flow","list-item"],["list-item,flow,block","list-item"],["flow,block,list-item","list-item"],["flow,list-item,block","list-item"],["inline,flow,list-item","inline list-item"],["inline,list-item,flow","inline list-item"],["list-item,inline,flow","inline list-item"],["list-item,flow,inline","inline list-item"],["flow,inline,list-item","inline list-item"],["flow,list-item,inline","inline list-item"],["block,flex","flex"],["flex,block","flex"],["inline,flex","inline-flex"],["flex,inline","inline-flex"],["block,grid","grid"],["grid,block","grid"],["inline,grid","inline-grid"],["grid,inline","inline-grid"],["inline,ruby","ruby"],["ruby,inline","ruby"],["block,table","table"],["table,block","table"],["inline,table","inline-table"],["table,inline","inline-table"]]);function transform(e){if(!e.trim())return e;const{nodes:t}=i(e);if(t.length<=1)return e;const n=t.filter(i=>"word"===i.type).map(i=>i.value.toLowerCase());if(n.length<=1)return e;const o=l.get(n.join(","));return o||e}const e=/^display$/i,t=/\b\s\b/,creator=i=>{const l=!("preserve"in Object(i))||Boolean(i?.preserve);return{postcssPlugin:"postcss-normalize-display-values",Declaration(i){if(!e.test(i.prop))return;const n=i.value;if(!n)return;if(!t.test(n))return;const o=transform(n);i.value!==o&&(i.cloneBefore({value:o}),l||i.remove())}}};creator.postcss=!0;export{creator as default,creator as"module.exports"}; diff --git a/plugins/postcss-normalize-display-values/src/mappings.ts b/plugins/postcss-normalize-display-values/src/mappings.ts index 45395a48f..072f68050 100644 --- a/plugins/postcss-normalize-display-values/src/mappings.ts +++ b/plugins/postcss-normalize-display-values/src/mappings.ts @@ -2,23 +2,61 @@ * Specification: https://www.w3.org/TR/css-display-3/#the-display-properties */ export default new Map([ - ['block,flex', 'flex'], + ['flow', 'block'], + ['block,flow', 'block'], + ['flow,block', 'block'], + + ['flow-root,block', 'flow-root'], ['block,flow-root', 'flow-root'], - ['block,grid', 'grid'], - ['block,table', 'table'], - ['inline,block', 'inline-block'], - ['inline,flex', 'inline-flex'], + ['inline,flow', 'inline'], - ['inline,flow,list-item', 'inline list-item'], + ['flow,inline', 'inline'], + ['inline,flow-root', 'inline-block'], + ['flow-root,inline', 'inline-block'], + + ['run-in,flow', 'run-in'], + ['flow,run-in', 'run-in'], + + ['block,list-item', 'list-item'], + ['list-item,block', 'list-item'], + + ['flow,list-item', 'list-item'], + ['list-item,flow', 'list-item'], + + ['block,flow,list-item', 'list-item'], + ['block,list-item,flow', 'list-item'], + ['list-item,block,flow', 'list-item'], + ['list-item,flow,block', 'list-item'], + ['flow,block,list-item', 'list-item'], + ['flow,list-item,block', 'list-item'], + + ['inline,flow,list-item', 'inline list-item'], + ['inline,list-item,flow', 'inline list-item'], + ['list-item,inline,flow', 'inline list-item'], + ['list-item,flow,inline', 'inline list-item'], + ['flow,inline,list-item', 'inline list-item'], + ['flow,list-item,inline', 'inline list-item'], + + ['block,flex', 'flex'], + ['flex,block', 'flex'], + + ['inline,flex', 'inline-flex'], + ['flex,inline', 'inline-flex'], + + ['block,grid', 'grid'], + ['grid,block', 'grid'], + ['inline,grid', 'inline-grid'], + ['grid,inline', 'inline-grid'], + ['inline,ruby', 'ruby'], + ['ruby,inline', 'ruby'], + + ['block,table', 'table'], + ['table,block', 'table'], + ['inline,table', 'inline-table'], - ['list-item,block,flow', 'list-item'], - ['ruby-base,flow', 'ruby-base'], - ['ruby-text,flow', 'ruby-text'], - ['run-in,flow', 'run-in'], - ['table-caption,flow', 'table-caption'], - ['table-cell,flow', 'table-cell'], + ['table,inline', 'inline-table'], ]); diff --git a/plugins/postcss-normalize-display-values/test/basic.css b/plugins/postcss-normalize-display-values/test/basic.css index 0321feada..f6c41831f 100644 --- a/plugins/postcss-normalize-display-values/test/basic.css +++ b/plugins/postcss-normalize-display-values/test/basic.css @@ -14,6 +14,10 @@ display: inline flow-root; } +.flow-root-inline { + display: flow-root inline; +} + .run-in-flow { display: run-in flow; } @@ -34,7 +38,7 @@ display: inline flex; } -.inline-block { +.ignore-inline-block { display: inline block; } diff --git a/plugins/postcss-normalize-display-values/test/basic.expect.css b/plugins/postcss-normalize-display-values/test/basic.expect.css index e0e32a564..c7985c2d5 100644 --- a/plugins/postcss-normalize-display-values/test/basic.expect.css +++ b/plugins/postcss-normalize-display-values/test/basic.expect.css @@ -18,6 +18,11 @@ display: inline flow-root; } +.flow-root-inline { + display: inline-block; + display: flow-root inline; +} + .run-in-flow { display: run-in; display: run-in flow; @@ -43,8 +48,7 @@ display: inline flex; } -.inline-block { - display: inline-block; +.ignore-inline-block { display: inline block; } @@ -74,21 +78,17 @@ } .table-cell-flow { - display: table-cell; display: table-cell flow; } .table-caption-flow { - display: table-caption; display: table-caption flow; } .ruby-base-flow { - display: ruby-base; display: ruby-base flow; } .ruby-text-flow { - display: ruby-text; display: ruby-text flow; } diff --git a/plugins/postcss-normalize-display-values/test/basic.preserve-false.expect.css b/plugins/postcss-normalize-display-values/test/basic.preserve-false.expect.css index f06bafdfb..3ec76fbff 100644 --- a/plugins/postcss-normalize-display-values/test/basic.preserve-false.expect.css +++ b/plugins/postcss-normalize-display-values/test/basic.preserve-false.expect.css @@ -14,6 +14,10 @@ display: inline-block; } +.flow-root-inline { + display: inline-block; +} + .run-in-flow { display: run-in; } @@ -34,8 +38,8 @@ display: inline-flex; } -.inline-block { - display: inline-block; +.ignore-inline-block { + display: inline block; } .block-grid { @@ -59,17 +63,17 @@ } .table-cell-flow { - display: table-cell; + display: table-cell flow; } .table-caption-flow { - display: table-caption; + display: table-caption flow; } .ruby-base-flow { - display: ruby-base; + display: ruby-base flow; } .ruby-text-flow { - display: ruby-text; + display: ruby-text flow; }