diff --git a/package-lock.json b/package-lock.json index 4962d964e3..4391fef207 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4669,9 +4669,9 @@ } }, "node_modules/autoprefixer": { - "version": "10.4.21", - "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz", - "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==", + "version": "10.4.22", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.22.tgz", + "integrity": "sha512-ARe0v/t9gO28Bznv6GgqARmVqcWOV3mfgUPn9becPHMiD3o9BwlRgaeccZnwTpZ7Zwqrm+c1sUSsMxIzQzc8Xg==", "funding": [ { "type": "opencollective", @@ -4688,9 +4688,9 @@ ], "license": "MIT", "dependencies": { - "browserslist": "^4.24.4", - "caniuse-lite": "^1.0.30001702", - "fraction.js": "^4.3.7", + "browserslist": "^4.27.0", + "caniuse-lite": "^1.0.30001754", + "fraction.js": "^5.3.4", "normalize-range": "^0.1.2", "picocolors": "^1.1.1", "postcss-value-parser": "^4.2.0" @@ -4867,9 +4867,9 @@ } }, "node_modules/baseline-browser-mapping": { - "version": "2.8.23", - "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.23.tgz", - "integrity": "sha512-616V5YX4bepJFzNyOfce5Fa8fDJMfoxzOIzDCZwaGL8MKVpFrXqfNUoIpRn9YMI5pXf/VKgzjB4htFMsFKKdiQ==", + "version": "2.8.31", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.31.tgz", + "integrity": "sha512-a28v2eWrrRWPpJSzxc+mKwm0ZtVx/G8SepdQZDArnXYU/XS+IF6mp8aB/4E+hH1tyGCoDo3KlUCdlSxGDsRkAw==", "license": "Apache-2.0", "bin": { "baseline-browser-mapping": "dist/cli.js" @@ -4910,9 +4910,9 @@ } }, "node_modules/browserslist": { - "version": "4.27.0", - "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.27.0.tgz", - "integrity": "sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw==", + "version": "4.28.0", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.0.tgz", + "integrity": "sha512-tbydkR/CxfMwelN0vwdP/pLkDwyAASZ+VfWm4EOwlB6SWhx1sYnWLqo8N5j0rAzPfzfRaxt0mM/4wPU/Su84RQ==", "funding": [ { "type": "opencollective", @@ -4929,10 +4929,10 @@ ], "license": "MIT", "dependencies": { - "baseline-browser-mapping": "^2.8.19", - "caniuse-lite": "^1.0.30001751", - "electron-to-chromium": "^1.5.238", - "node-releases": "^2.0.26", + "baseline-browser-mapping": "^2.8.25", + "caniuse-lite": "^1.0.30001754", + "electron-to-chromium": "^1.5.249", + "node-releases": "^2.0.27", "update-browserslist-db": "^1.1.4" }, "bin": { @@ -5022,9 +5022,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001753", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001753.tgz", - "integrity": "sha512-Bj5H35MD/ebaOV4iDLqPEtiliTN29qkGtEHCwawWn4cYm+bPJM2NsaP30vtZcnERClMzp52J4+aw2UNbK4o+zw==", + "version": "1.0.30001756", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001756.tgz", + "integrity": "sha512-4HnCNKbMLkLdhJz3TToeVWHSnfJvPaq6vu/eRP0Ahub/07n484XHhBF5AJoSGHdVrS8tKFauUQz8Bp9P7LVx7A==", "funding": [ { "type": "opencollective", @@ -5427,9 +5427,9 @@ } }, "node_modules/electron-to-chromium": { - "version": "1.5.244", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.244.tgz", - "integrity": "sha512-OszpBN7xZX4vWMPJwB9illkN/znA8M36GQqQxi6MNy9axWxhOfJyZZJtSLQCpEFLHP2xK33BiWx9aIuIEXVCcw==", + "version": "1.5.259", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.259.tgz", + "integrity": "sha512-I+oLXgpEJzD6Cwuwt1gYjxsDmu/S/Kd41mmLA3O+/uH2pFRO/DvOjUyGozL8j3KeLV6WyZ7ssPwELMsXCcsJAQ==", "license": "ISC" }, "node_modules/emoji-regex": { @@ -6092,15 +6092,15 @@ } }, "node_modules/fraction.js": { - "version": "4.3.7", - "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", - "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "version": "5.3.4", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-5.3.4.tgz", + "integrity": "sha512-1X1NTtiJphryn/uLQz3whtY6jK3fTqoE3ohKs0tT+Ujr1W59oopxmoEh7Lu5p6vBaPbgoM0bzveAW4Qi5RyWDQ==", "license": "MIT", "engines": { "node": "*" }, "funding": { - "type": "patreon", + "type": "github", "url": "https://github.com/sponsors/rawify" } }, @@ -9784,8 +9784,8 @@ "@csstools/postcss-text-decoration-shorthand": "^4.0.3", "@csstools/postcss-trigonometric-functions": "^4.0.9", "@csstools/postcss-unset-value": "^4.0.0", - "autoprefixer": "^10.4.21", - "browserslist": "^4.27.0", + "autoprefixer": "^10.4.22", + "browserslist": "^4.28.0", "css-blank-pseudo": "^7.0.1", "css-has-pseudo": "^7.0.3", "css-prefers-color-scheme": "^10.0.0", @@ -10118,13 +10118,13 @@ "license": "MIT-0", "devDependencies": { "@csstools/postcss-tape": "*", - "browserslist": "^4.27.0" + "browserslist": "^4.28.0" }, "engines": { "node": ">=18" }, "peerDependencies": { - "browserslist": "^4.27.0", + "browserslist": "^4.28.0", "postcss": "^8.4" } }, @@ -11859,7 +11859,7 @@ }, "devDependencies": { "@csstools/postcss-tape": "*", - "autoprefixer": "^10.4.21" + "autoprefixer": "^10.4.22" }, "engines": { "node": ">=18" @@ -11885,7 +11885,7 @@ "dependencies": { "@csstools/css-parser-algorithms": "^3.0.5", "@csstools/css-tokenizer": "^3.0.4", - "browserslist": "^4.27.0" + "browserslist": "^4.28.0" }, "devDependencies": { "@csstools/postcss-tape": "*" diff --git a/plugin-packs/postcss-preset-env/package.json b/plugin-packs/postcss-preset-env/package.json index 24e6d2a73b..fb819e2371 100644 --- a/plugin-packs/postcss-preset-env/package.json +++ b/plugin-packs/postcss-preset-env/package.json @@ -88,8 +88,8 @@ "@csstools/postcss-text-decoration-shorthand": "^4.0.3", "@csstools/postcss-trigonometric-functions": "^4.0.9", "@csstools/postcss-unset-value": "^4.0.0", - "autoprefixer": "^10.4.21", - "browserslist": "^4.27.0", + "autoprefixer": "^10.4.22", + "browserslist": "^4.28.0", "css-blank-pseudo": "^7.0.1", "css-has-pseudo": "^7.0.3", "css-prefers-color-scheme": "^10.0.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 5b558fc472..8aabec53bd 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 @@ -10,7 +10,6 @@ -webkit-box-ordinal-group: 2; -webkit-order: 1; -moz-box-ordinal-group: 2; - -ms-flex-order: 1; order: 1; } @@ -19,7 +18,6 @@ -webkit-box-ordinal-group: 3; -webkit-order: 2; -moz-box-ordinal-group: 3; - -ms-flex-order: 2; order: 2; } @@ -36,7 +34,6 @@ -webkit-box-ordinal-group: 4; -webkit-order: 3; -moz-box-ordinal-group: 4; - -ms-flex-order: 3; order: 3; padding-top: 4px; padding-bottom: 4px; @@ -56,7 +53,6 @@ -webkit-box-ordinal-group: 5; -webkit-order: 4; -moz-box-ordinal-group: 5; - -ms-flex-order: 4; order: 4; } @@ -64,7 +60,6 @@ -webkit-box-ordinal-group: 6; -webkit-order: 5; -moz-box-ordinal-group: 6; - -ms-flex-order: 5; order: 5; } @@ -76,8 +71,6 @@ -moz-box-ordinal-group: 7; - -ms-flex-order: 6; - order: 6; } @@ -86,7 +79,6 @@ -webkit-box-ordinal-group: 8; -webkit-order: 7; -moz-box-ordinal-group: 8; - -ms-flex-order: 7; order: 7; } @@ -94,7 +86,6 @@ -webkit-box-ordinal-group: 9; -webkit-order: 8; -moz-box-ordinal-group: 9; - -ms-flex-order: 8; order: 8; } @@ -107,8 +98,6 @@ -moz-box-ordinal-group: 10; - -ms-flex-order: 9; - order: 9; } @@ -117,7 +106,6 @@ -webkit-box-ordinal-group: 11; -webkit-order: 10; -moz-box-ordinal-group: 11; - -ms-flex-order: 10; order: 10; } } @@ -127,7 +115,6 @@ -webkit-box-ordinal-group: 12; -webkit-order: 11; -moz-box-ordinal-group: 12; - -ms-flex-order: 11; order: 11; } } @@ -143,7 +130,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -151,7 +137,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 14; -webkit-order: 13; -moz-box-ordinal-group: 14; - -ms-flex-order: 13; order: 13; } @@ -160,7 +145,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 15; -webkit-order: 14; -moz-box-ordinal-group: 15; - -ms-flex-order: 14; order: 14; } @@ -170,7 +154,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 16; -webkit-order: 15; -moz-box-ordinal-group: 16; - -ms-flex-order: 15; order: 15; } @@ -179,7 +162,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 17; -webkit-order: 16; -moz-box-ordinal-group: 17; - -ms-flex-order: 16; order: 16; } @@ -189,7 +171,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 18; -webkit-order: 17; -moz-box-ordinal-group: 18; - -ms-flex-order: 17; order: 17; } @@ -198,7 +179,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 19; -webkit-order: 18; -moz-box-ordinal-group: 19; - -ms-flex-order: 18; order: 18; } @@ -210,7 +190,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 20; -webkit-order: 19; -moz-box-ordinal-group: 20; - -ms-flex-order: 19; order: 19; } @@ -343,7 +322,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 21; -webkit-order: 20; -moz-box-ordinal-group: 21; - -ms-flex-order: 20; order: 20; } @@ -351,7 +329,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 22; -webkit-order: 21; -moz-box-ordinal-group: 22; - -ms-flex-order: 21; order: 21; } @@ -359,7 +336,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 23; -webkit-order: 22; -moz-box-ordinal-group: 23; - -ms-flex-order: 22; order: 22; } @@ -367,7 +343,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -375,7 +350,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 25; -webkit-order: 24; -moz-box-ordinal-group: 25; - -ms-flex-order: 24; order: 24; } @@ -383,7 +357,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 26; -webkit-order: 25; -moz-box-ordinal-group: 26; - -ms-flex-order: 25; order: 25; word-wrap: break-word; } @@ -392,7 +365,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 27; -webkit-order: 26; -moz-box-ordinal-group: 27; - -ms-flex-order: 26; order: 26; } @@ -412,7 +384,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 28; -webkit-order: 27; -moz-box-ordinal-group: 28; - -ms-flex-order: 27; order: 27; } @@ -420,7 +391,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 29; -webkit-order: 28; -moz-box-ordinal-group: 29; - -ms-flex-order: 28; order: 28; } @@ -507,7 +477,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: -webkit-box; display: -webkit-flex; display: -moz-box; - display: -ms-flexbox; display: flex; } @@ -515,7 +484,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: -webkit-inline-box; display: -webkit-inline-flex; display: -moz-inline-box; - display: -ms-inline-flexbox; display: inline-flex; } @@ -708,7 +676,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: NaN; -webkit-order: -webkit-calc(1 * (8 / 3 + (5 * 10))); -moz-box-ordinal-group: NaN; - -ms-flex-order: calc(1 * (8 / 3 + (5 * 10))); order: calc(1 * (8 / 3 + (5 * 10))); } @@ -891,7 +858,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 2; -webkit-order: 1; -moz-box-ordinal-group: 2; - -ms-flex-order: 1; order: 1; z-index: -1; } @@ -900,7 +866,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 11; -webkit-order: 10px; -moz-box-ordinal-group: 11; - -ms-flex-order: 10px; order: 10px; z-index: 10px; } 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 63bf1a5668..e937e9e5cb 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 @@ -16,12 +16,10 @@ -webkit-box-ordinal-group: 2; -webkit-order: 1; -moz-box-ordinal-group: 2; - -ms-flex-order: 1; order: 1; -webkit-box-ordinal-group: var(--order); -webkit-order: var(--order); -moz-box-ordinal-group: var(--order); - -ms-flex-order: var(--order); order: var(--order); } @@ -32,7 +30,6 @@ -webkit-box-ordinal-group: 3; -webkit-order: 2; -moz-box-ordinal-group: 3; - -ms-flex-order: 2; order: 2; } @@ -49,7 +46,6 @@ -webkit-box-ordinal-group: 4; -webkit-order: 3; -moz-box-ordinal-group: 4; - -ms-flex-order: 3; order: 3; padding-top: 4px; padding-bottom: 4px; @@ -72,7 +68,6 @@ -webkit-box-ordinal-group: 5; -webkit-order: 4; -moz-box-ordinal-group: 5; - -ms-flex-order: 4; order: 4; } @@ -80,7 +75,6 @@ -webkit-box-ordinal-group: 6; -webkit-order: 5; -moz-box-ordinal-group: 6; - -ms-flex-order: 5; order: 5; } @@ -92,8 +86,6 @@ -moz-box-ordinal-group: 7; - -ms-flex-order: 6; - order: 6; } @@ -102,7 +94,6 @@ -webkit-box-ordinal-group: 8; -webkit-order: 7; -moz-box-ordinal-group: 8; - -ms-flex-order: 7; order: 7; } @@ -110,7 +101,6 @@ -webkit-box-ordinal-group: 9; -webkit-order: 8; -moz-box-ordinal-group: 9; - -ms-flex-order: 8; order: 8; } @@ -118,7 +108,6 @@ -webkit-box-ordinal-group: 9; -webkit-order: 8; -moz-box-ordinal-group: 9; - -ms-flex-order: 8; order: 8; } @@ -131,8 +120,6 @@ -moz-box-ordinal-group: 10; - -ms-flex-order: 9; - order: 9; } @@ -143,7 +130,6 @@ -webkit-box-ordinal-group: 11; -webkit-order: 10; -moz-box-ordinal-group: 11; - -ms-flex-order: 10; order: 10; } } @@ -153,7 +139,6 @@ -webkit-box-ordinal-group: 11; -webkit-order: 10; -moz-box-ordinal-group: 11; - -ms-flex-order: 10; order: 10; } } @@ -163,7 +148,6 @@ -webkit-box-ordinal-group: 12; -webkit-order: 11; -moz-box-ordinal-group: 12; - -ms-flex-order: 11; order: 11; } } @@ -190,7 +174,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -198,7 +181,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -206,7 +188,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -214,7 +195,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 14; -webkit-order: 13; -moz-box-ordinal-group: 14; - -ms-flex-order: 13; order: 13; } @@ -222,7 +202,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 14; -webkit-order: 13; -moz-box-ordinal-group: 14; - -ms-flex-order: 13; order: 13; } @@ -232,7 +211,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 15; -webkit-order: 14; -moz-box-ordinal-group: 15; - -ms-flex-order: 14; order: 14; } @@ -244,7 +222,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 16; -webkit-order: 15; -moz-box-ordinal-group: 16; - -ms-flex-order: 15; order: 15; } @@ -254,7 +231,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 17; -webkit-order: 16; -moz-box-ordinal-group: 17; - -ms-flex-order: 16; order: 16; } @@ -266,7 +242,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 18; -webkit-order: 17; -moz-box-ordinal-group: 18; - -ms-flex-order: 17; order: 17; } @@ -275,7 +250,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 19; -webkit-order: 18; -moz-box-ordinal-group: 19; - -ms-flex-order: 18; order: 18; } @@ -287,7 +261,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 20; -webkit-order: 19; -moz-box-ordinal-group: 20; - -ms-flex-order: 19; order: 19; } @@ -421,7 +394,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 21; -webkit-order: 20; -moz-box-ordinal-group: 21; - -ms-flex-order: 20; order: 20; } @@ -429,7 +401,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 22; -webkit-order: 21; -moz-box-ordinal-group: 22; - -ms-flex-order: 21; order: 21; } @@ -437,7 +408,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 23; -webkit-order: 22; -moz-box-ordinal-group: 23; - -ms-flex-order: 22; order: 22; } @@ -445,7 +415,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -464,7 +433,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -472,7 +440,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 25; -webkit-order: 24; -moz-box-ordinal-group: 25; - -ms-flex-order: 24; order: 24; } @@ -480,7 +447,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 25; -webkit-order: 24; -moz-box-ordinal-group: 25; - -ms-flex-order: 24; order: 24; } @@ -488,7 +454,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 26; -webkit-order: 25; -moz-box-ordinal-group: 26; - -ms-flex-order: 25; order: 25; word-wrap: break-word; overflow-wrap: break-word; @@ -498,7 +463,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 27; -webkit-order: 26; -moz-box-ordinal-group: 27; - -ms-flex-order: 26; order: 26; } @@ -519,7 +483,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 28; -webkit-order: 27; -moz-box-ordinal-group: 28; - -ms-flex-order: 27; order: 27; } @@ -527,7 +490,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 28; -webkit-order: 27; -moz-box-ordinal-group: 28; - -ms-flex-order: 27; order: 27; } @@ -535,7 +497,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 29; -webkit-order: 28; -moz-box-ordinal-group: 29; - -ms-flex-order: 28; order: 28; } @@ -543,7 +504,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 29; -webkit-order: 28; -moz-box-ordinal-group: 29; - -ms-flex-order: 28; order: 28; } @@ -665,7 +625,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: -webkit-box; display: -webkit-flex; display: -moz-box; - display: -ms-flexbox; display: flex; display: block flex; } @@ -674,7 +633,6 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe display: -webkit-inline-box; display: -webkit-inline-flex; display: -moz-inline-box; - display: -ms-inline-flexbox; display: inline-flex; display: inline flex; } @@ -995,10 +953,8 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: NaN; -webkit-order: -webkit-calc(1 * (8 / 3 + (5 * 10))); -moz-box-ordinal-group: NaN; - -ms-flex-order: calc(1 * (8 / 3 + (5 * 10))); order: calc(1 * (8 / 3 + (5 * 10))); -webkit-order: -webkit-calc(1 * -webkit-calc(8 / 3 + -webkit-calc(5 * 10))); - -ms-flex-order: calc(1 * calc(8 / 3 + calc(5 * 10))); order: calc(1 * calc(8 / 3 + calc(5 * 10))); } @@ -1280,12 +1236,10 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 2; -webkit-order: 1; -moz-box-ordinal-group: 2; - -ms-flex-order: 1; order: 1; -webkit-box-ordinal-group: NaN; -webkit-order: sign(10px); -moz-box-ordinal-group: NaN; - -ms-flex-order: sign(10px); order: sign(10px); z-index: -1; z-index: sign(-10px); @@ -1295,12 +1249,10 @@ h1.test-custom-selectors:not(.does-not-exist), h2.test-custom-selectors:not(.doe -webkit-box-ordinal-group: 11; -webkit-order: 10px; -moz-box-ordinal-group: 11; - -ms-flex-order: 10px; order: 10px; -webkit-box-ordinal-group: NaN; -webkit-order: abs(10px); -moz-box-ordinal-group: NaN; - -ms-flex-order: abs(10px); order: abs(10px); z-index: 10px; z-index: abs(-10px); 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 0d0187c306..7c6a198432 100644 --- a/plugin-packs/postcss-preset-env/test/layers-basic.expect.css +++ b/plugin-packs/postcss-preset-env/test/layers-basic.expect.css @@ -5,7 +5,6 @@ -webkit-box-ordinal-group: 6; -webkit-order: 5.1; -moz-box-ordinal-group: 6; - -ms-flex-order: 5.1; order: 5.1; } @@ -24,12 +23,10 @@ -webkit-box-ordinal-group: 2; -webkit-order: 1; -moz-box-ordinal-group: 2; - -ms-flex-order: 1; order: 1; -webkit-box-ordinal-group: var(--order); -webkit-order: var(--order); -moz-box-ordinal-group: var(--order); - -ms-flex-order: var(--order); order: var(--order); } @@ -41,7 +38,6 @@ -webkit-box-ordinal-group: 3; -webkit-order: 2; -moz-box-ordinal-group: 3; - -ms-flex-order: 2; order: 2; } @@ -58,7 +54,6 @@ -webkit-box-ordinal-group: 4; -webkit-order: 3; -moz-box-ordinal-group: 4; - -ms-flex-order: 3; order: 3; padding-top: 5px; padding-bottom: 5px; @@ -69,7 +64,6 @@ -webkit-box-ordinal-group: 5; -webkit-order: 4; -moz-box-ordinal-group: 5; - -ms-flex-order: 4; order: 4; } @@ -78,7 +72,6 @@ -webkit-box-ordinal-group: 6; -webkit-order: 5; -moz-box-ordinal-group: 6; - -ms-flex-order: 5; order: 5; } @@ -88,7 +81,6 @@ -webkit-box-ordinal-group: 7; -webkit-order: 6; -moz-box-ordinal-group: 7; - -ms-flex-order: 6; order: 6; } @@ -97,7 +89,6 @@ -webkit-box-ordinal-group: 8; -webkit-order: 7; -moz-box-ordinal-group: 8; - -ms-flex-order: 7; order: 7; } @@ -105,7 +96,6 @@ -webkit-box-ordinal-group: 9; -webkit-order: 8; -moz-box-ordinal-group: 9; - -ms-flex-order: 8; order: 8; } @@ -118,8 +108,6 @@ -moz-box-ordinal-group: 10; - -ms-flex-order: 9; - order: 9; } @@ -128,7 +116,6 @@ -webkit-box-ordinal-group: 11; -webkit-order: 10; -moz-box-ordinal-group: 11; - -ms-flex-order: 10; order: 10; } } @@ -139,7 +126,6 @@ -webkit-box-ordinal-group: 12; -webkit-order: 11; -moz-box-ordinal-group: 12; - -ms-flex-order: 11; order: 11; } } @@ -155,7 +141,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -163,7 +148,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 14; -webkit-order: 13; -moz-box-ordinal-group: 14; - -ms-flex-order: 13; order: 13; } @@ -172,7 +156,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 15; -webkit-order: 14; -moz-box-ordinal-group: 15; - -ms-flex-order: 14; order: 14; } @@ -182,7 +165,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 16; -webkit-order: 15; -moz-box-ordinal-group: 16; - -ms-flex-order: 15; order: 15; } @@ -191,7 +173,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 17; -webkit-order: 16; -moz-box-ordinal-group: 17; - -ms-flex-order: 16; order: 16; } @@ -201,7 +182,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 18; -webkit-order: 17; -moz-box-ordinal-group: 18; - -ms-flex-order: 17; order: 17; } @@ -210,7 +190,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 19; -webkit-order: 18; -moz-box-ordinal-group: 19; - -ms-flex-order: 18; order: 18; } @@ -222,7 +201,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 20; -webkit-order: 19; -moz-box-ordinal-group: 20; - -ms-flex-order: 19; order: 19; } @@ -356,7 +334,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 21; -webkit-order: 20; -moz-box-ordinal-group: 21; - -ms-flex-order: 20; order: 20; } @@ -364,7 +341,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 22; -webkit-order: 21; -moz-box-ordinal-group: 22; - -ms-flex-order: 21; order: 21; } @@ -372,7 +348,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 23; -webkit-order: 22; -moz-box-ordinal-group: 23; - -ms-flex-order: 22; order: 22; } @@ -380,7 +355,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -399,7 +373,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -407,7 +380,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 25; -webkit-order: 24; -moz-box-ordinal-group: 25; - -ms-flex-order: 24; order: 24; } @@ -415,7 +387,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 26; -webkit-order: 25; -moz-box-ordinal-group: 26; - -ms-flex-order: 25; order: 25; word-wrap: break-word; } @@ -424,7 +395,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 27; -webkit-order: 26; -moz-box-ordinal-group: 27; - -ms-flex-order: 26; order: 26; } @@ -445,7 +415,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 28; -webkit-order: 27; -moz-box-ordinal-group: 28; - -ms-flex-order: 27; order: 27; } @@ -453,7 +422,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 29; -webkit-order: 28; -moz-box-ordinal-group: 29; - -ms-flex-order: 28; order: 28; } @@ -547,7 +515,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n display: -webkit-box; display: -webkit-flex; display: -moz-box; - display: -ms-flexbox; display: flex; display: block flex; } @@ -556,7 +523,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n display: -webkit-inline-box; display: -webkit-inline-flex; display: -moz-inline-box; - display: -ms-inline-flexbox; display: inline-flex; display: inline flex; } 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 a406b8959f..7b6d929f9e 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 @@ -8,7 +8,6 @@ -webkit-box-ordinal-group: 6; -webkit-order: 5.1; -moz-box-ordinal-group: 6; - -ms-flex-order: 5.1; order: 5.1; } @@ -33,12 +32,10 @@ -webkit-box-ordinal-group: 2; -webkit-order: 1; -moz-box-ordinal-group: 2; - -ms-flex-order: 1; order: 1; -webkit-box-ordinal-group: var(--order); -webkit-order: var(--order); -moz-box-ordinal-group: var(--order); - -ms-flex-order: var(--order); order: var(--order); } @@ -50,7 +47,6 @@ -webkit-box-ordinal-group: 3; -webkit-order: 2; -moz-box-ordinal-group: 3; - -ms-flex-order: 2; order: 2; } @@ -67,7 +63,6 @@ -webkit-box-ordinal-group: 4; -webkit-order: 3; -moz-box-ordinal-group: 4; - -ms-flex-order: 3; order: 3; padding-top: 5px; padding-bottom: 5px; @@ -78,7 +73,6 @@ -webkit-box-ordinal-group: 5; -webkit-order: 4; -moz-box-ordinal-group: 5; - -ms-flex-order: 4; order: 4; } @@ -87,7 +81,6 @@ -webkit-box-ordinal-group: 6; -webkit-order: 5; -moz-box-ordinal-group: 6; - -ms-flex-order: 5; order: 5; } @@ -97,7 +90,6 @@ -webkit-box-ordinal-group: 7; -webkit-order: 6; -moz-box-ordinal-group: 7; - -ms-flex-order: 6; order: 6; } @@ -106,7 +98,6 @@ -webkit-box-ordinal-group: 8; -webkit-order: 7; -moz-box-ordinal-group: 8; - -ms-flex-order: 7; order: 7; } @@ -114,7 +105,6 @@ -webkit-box-ordinal-group: 9; -webkit-order: 8; -moz-box-ordinal-group: 9; - -ms-flex-order: 8; order: 8; } @@ -122,7 +112,6 @@ -webkit-box-ordinal-group: 9; -webkit-order: 8; -moz-box-ordinal-group: 9; - -ms-flex-order: 8; order: 8; } @@ -135,8 +124,6 @@ -moz-box-ordinal-group: 10; - -ms-flex-order: 9; - order: 9; } @@ -147,7 +134,6 @@ -webkit-box-ordinal-group: 11; -webkit-order: 10; -moz-box-ordinal-group: 11; - -ms-flex-order: 10; order: 10; } } @@ -157,7 +143,6 @@ -webkit-box-ordinal-group: 11; -webkit-order: 10; -moz-box-ordinal-group: 11; - -ms-flex-order: 10; order: 10; } } @@ -168,7 +153,6 @@ -webkit-box-ordinal-group: 12; -webkit-order: 11; -moz-box-ordinal-group: 12; - -ms-flex-order: 11; order: 11; } } @@ -193,7 +177,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -201,7 +184,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -209,7 +191,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group:13; -webkit-order:12; -moz-box-ordinal-group:13; - -ms-flex-order:12; order:12; } @@ -217,7 +198,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 14; -webkit-order: 13; -moz-box-ordinal-group: 14; - -ms-flex-order: 13; order: 13; } @@ -225,7 +205,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 14; -webkit-order: 13; -moz-box-ordinal-group: 14; - -ms-flex-order: 13; order: 13; } @@ -235,7 +214,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 15; -webkit-order: 14; -moz-box-ordinal-group: 15; - -ms-flex-order: 14; order: 14; } @@ -247,7 +225,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 16; -webkit-order: 15; -moz-box-ordinal-group: 16; - -ms-flex-order: 15; order: 15; } @@ -257,7 +234,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 17; -webkit-order: 16; -moz-box-ordinal-group: 17; - -ms-flex-order: 16; order: 16; } @@ -269,7 +245,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 18; -webkit-order: 17; -moz-box-ordinal-group: 18; - -ms-flex-order: 17; order: 17; } @@ -278,7 +253,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 19; -webkit-order: 18; -moz-box-ordinal-group: 19; - -ms-flex-order: 18; order: 18; } @@ -290,7 +264,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 20; -webkit-order: 19; -moz-box-ordinal-group: 20; - -ms-flex-order: 19; order: 19; } @@ -424,7 +397,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 21; -webkit-order: 20; -moz-box-ordinal-group: 21; - -ms-flex-order: 20; order: 20; } @@ -432,7 +404,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 22; -webkit-order: 21; -moz-box-ordinal-group: 22; - -ms-flex-order: 21; order: 21; } @@ -440,7 +411,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 23; -webkit-order: 22; -moz-box-ordinal-group: 23; - -ms-flex-order: 22; order: 22; } @@ -448,7 +418,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -467,7 +436,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 24; -webkit-order: 23; -moz-box-ordinal-group: 24; - -ms-flex-order: 23; order: 23; } @@ -475,7 +443,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 25; -webkit-order: 24; -moz-box-ordinal-group: 25; - -ms-flex-order: 24; order: 24; } @@ -483,7 +450,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 25; -webkit-order: 24; -moz-box-ordinal-group: 25; - -ms-flex-order: 24; order: 24; } @@ -491,7 +457,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 26; -webkit-order: 25; -moz-box-ordinal-group: 26; - -ms-flex-order: 25; order: 25; word-wrap: break-word; overflow-wrap: break-word; @@ -501,7 +466,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 27; -webkit-order: 26; -moz-box-ordinal-group: 27; - -ms-flex-order: 26; order: 26; } @@ -522,7 +486,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 28; -webkit-order: 27; -moz-box-ordinal-group: 28; - -ms-flex-order: 27; order: 27; } @@ -530,7 +493,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 28; -webkit-order: 27; -moz-box-ordinal-group: 28; - -ms-flex-order: 27; order: 27; } @@ -538,7 +500,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 29; -webkit-order: 28; -moz-box-ordinal-group: 29; - -ms-flex-order: 28; order: 28; } @@ -546,7 +507,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n -webkit-box-ordinal-group: 29; -webkit-order: 28; -moz-box-ordinal-group: 29; - -ms-flex-order: 28; order: 28; } @@ -668,7 +628,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n display: -webkit-box; display: -webkit-flex; display: -moz-box; - display: -ms-flexbox; display: flex; display: block flex; } @@ -677,7 +636,6 @@ h1.test-custom-selectors:not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):not(#\#):n display: -webkit-inline-box; display: -webkit-inline-flex; display: -moz-inline-box; - display: -ms-inline-flexbox; display: inline-flex; display: inline flex; } diff --git a/plugins/postcss-browser-comments/CHANGELOG.md b/plugins/postcss-browser-comments/CHANGELOG.md index fe4c78028b..20cb992dec 100644 --- a/plugins/postcss-browser-comments/CHANGELOG.md +++ b/plugins/postcss-browser-comments/CHANGELOG.md @@ -1,5 +1,9 @@ # Changes to PostCSS Browser Comments +### Unreleased (patch) + +- Correctly list all browser versions. This fixes an issue where a config targeting a dead browser (e.g. `IE 10`) would remove styles marked with `all browsers`. + ### 6.0.1 _September 25, 2024_ diff --git a/plugins/postcss-browser-comments/dist/index.cjs b/plugins/postcss-browser-comments/dist/index.cjs index af70a2a2c3..ac75902d98 100644 --- a/plugins/postcss-browser-comments/dist/index.cjs +++ b/plugins/postcss-browser-comments/dist/index.cjs @@ -1 +1 @@ -"use strict";var e=require("browserslist");const creator=s=>({postcssPlugin:"postcss-browser-comments",Once(t){const r=new Set(e(s?.browsers??null,{path:t?.source?.input.file})),o=t.nodes.slice(0);for(const s of o){if(!isBrowserCommentNode(s))continue;const t=s.next();if(!t||"rule"!==t.type)continue;const o=getBrowserData(s.text);o.isNumbered?(t.nodes.filter(isBrowserReferenceCommentNode).map(s=>{const t=parseFloat(s.text)-1,n=e(o.browserslist[t]);browserslistsOverlap(r,n)||(s.prev()?.remove(),s.remove())}),t.nodes.length||(t.remove(),s.remove())):browserslistsOverlap(r,e(o.browserslist))||(t.remove(),s.remove())}}});function isBrowserCommentNode(e){return"comment"===e.type&&(!!s.test(e.text)&&"rule"===e.next()?.type)}creator.postcss=!0;const s=/^\*\n +/;function isBrowserReferenceCommentNode(e){return"comment"===e.type&&t.test(e.text)}const t=/^\d+$/;function getBrowserData(e){const s=e.match(r);return s?{browserslist:s.map(e=>getBrowsersList(e.replace(n,"$1"))),isNumbered:!0}:{browserslist:getBrowsersList(e.replace(o,"")),isNumbered:!1}}const r=/(\n \* \d+\. (?:[^\n]|\n \* {4,})+)/g,o=/^\*\n \* ?|\n \*/g,n=/\n \* (?:( )\s*)?/g;function getBrowsersList(e){return e.split(i).slice(1).map(e=>e.split(c).filter(e=>e)).reduce((e,s)=>e.concat(s),[]).map(e=>e.replace(l,(e,s,t)=>"all"===s?"> 0%":`${s}${t?/^((?:\d*\.)?\d+)-$/.test(t)?` <= ${t.slice(0,-1)}`:` ${t}`:" > 0"}`).toLowerCase())}const i=/\s+in\s+/,c=/ and|, and|,/,l=/^\s*(\w+)(?: ((?:(?:\d*\.)?\d+-)?(?:\d*\.)?\d+[+-]?))?.*$/;function browserslistsOverlap(e,s){return s.some(s=>e.has(s))}module.exports=creator; +"use strict";var e=require("browserslist");const creator=s=>({postcssPlugin:"postcss-browser-comments",Once(t){const r=new Set(e(s?.browsers??null,{path:t?.source?.input.file})),o=t.nodes.slice(0);for(const s of o){if(!isBrowserCommentNode(s))continue;const t=s.next();if(!t||"rule"!==t.type)continue;const o=getBrowserData(s.text);o.isNumbered?(t.nodes.filter(isBrowserReferenceCommentNode).map(s=>{const t=parseFloat(s.text)-1,n=e(o.browserslist[t]);browserslistsOverlap(r,n)||(s.prev()?.remove(),s.remove())}),t.nodes.length||(t.remove(),s.remove())):browserslistsOverlap(r,e(o.browserslist))||(t.remove(),s.remove())}}});function isBrowserCommentNode(e){return"comment"===e.type&&(!!s.test(e.text)&&"rule"===e.next()?.type)}creator.postcss=!0;const s=/^\*\n +/;function isBrowserReferenceCommentNode(e){return"comment"===e.type&&t.test(e.text)}const t=/^\d+$/;function getBrowserData(e){const s=e.match(r);return s?{browserslist:s.map(e=>getBrowsersList(e.replace(n,"$1"))),isNumbered:!0}:{browserslist:getBrowsersList(e.replace(o,"")),isNumbered:!1}}const r=/(\n \* \d+\. (?:[^\n]|\n \* {4,})+)/g,o=/^\*\n \* ?|\n \*/g,n=/\n \* (?:( )\s*)?/g;function getBrowsersList(e){return e.split(i).slice(1).map(e=>e.split(c).filter(e=>e)).reduce((e,s)=>e.concat(s),[]).map(e=>e.replace(l,(e,s,t)=>"all"===s?">= 0%":`${s}${t?/^((?:\d*\.)?\d+)-$/.test(t)?` <= ${t.slice(0,-1)}`:` ${t}`:" > 0"}`).toLowerCase())}const i=/\s+in\s+/,c=/ and|, and|,/,l=/^\s*(\w+)(?: ((?:(?:\d*\.)?\d+-)?(?:\d*\.)?\d+[+-]?))?.*$/;function browserslistsOverlap(e,s){return s.some(s=>e.has(s))}module.exports=creator; diff --git a/plugins/postcss-browser-comments/dist/index.mjs b/plugins/postcss-browser-comments/dist/index.mjs index 3a903f7f21..e5950cecd2 100644 --- a/plugins/postcss-browser-comments/dist/index.mjs +++ b/plugins/postcss-browser-comments/dist/index.mjs @@ -1 +1 @@ -import e from"browserslist";const creator=s=>({postcssPlugin:"postcss-browser-comments",Once(t){const r=new Set(e(s?.browsers??null,{path:t?.source?.input.file})),o=t.nodes.slice(0);for(const s of o){if(!isBrowserCommentNode(s))continue;const t=s.next();if(!t||"rule"!==t.type)continue;const o=getBrowserData(s.text);o.isNumbered?(t.nodes.filter(isBrowserReferenceCommentNode).map(s=>{const t=parseFloat(s.text)-1,n=e(o.browserslist[t]);browserslistsOverlap(r,n)||(s.prev()?.remove(),s.remove())}),t.nodes.length||(t.remove(),s.remove())):browserslistsOverlap(r,e(o.browserslist))||(t.remove(),s.remove())}}});function isBrowserCommentNode(e){return"comment"===e.type&&(!!s.test(e.text)&&"rule"===e.next()?.type)}creator.postcss=!0;const s=/^\*\n +/;function isBrowserReferenceCommentNode(e){return"comment"===e.type&&t.test(e.text)}const t=/^\d+$/;function getBrowserData(e){const s=e.match(r);return s?{browserslist:s.map(e=>getBrowsersList(e.replace(n,"$1"))),isNumbered:!0}:{browserslist:getBrowsersList(e.replace(o,"")),isNumbered:!1}}const r=/(\n \* \d+\. (?:[^\n]|\n \* {4,})+)/g,o=/^\*\n \* ?|\n \*/g,n=/\n \* (?:( )\s*)?/g;function getBrowsersList(e){return e.split(i).slice(1).map(e=>e.split(c).filter(e=>e)).reduce((e,s)=>e.concat(s),[]).map(e=>e.replace(l,(e,s,t)=>"all"===s?"> 0%":`${s}${t?/^((?:\d*\.)?\d+)-$/.test(t)?` <= ${t.slice(0,-1)}`:` ${t}`:" > 0"}`).toLowerCase())}const i=/\s+in\s+/,c=/ and|, and|,/,l=/^\s*(\w+)(?: ((?:(?:\d*\.)?\d+-)?(?:\d*\.)?\d+[+-]?))?.*$/;function browserslistsOverlap(e,s){return s.some(s=>e.has(s))}export{creator as default}; +import e from"browserslist";const creator=s=>({postcssPlugin:"postcss-browser-comments",Once(t){const r=new Set(e(s?.browsers??null,{path:t?.source?.input.file})),o=t.nodes.slice(0);for(const s of o){if(!isBrowserCommentNode(s))continue;const t=s.next();if(!t||"rule"!==t.type)continue;const o=getBrowserData(s.text);o.isNumbered?(t.nodes.filter(isBrowserReferenceCommentNode).map(s=>{const t=parseFloat(s.text)-1,n=e(o.browserslist[t]);browserslistsOverlap(r,n)||(s.prev()?.remove(),s.remove())}),t.nodes.length||(t.remove(),s.remove())):browserslistsOverlap(r,e(o.browserslist))||(t.remove(),s.remove())}}});function isBrowserCommentNode(e){return"comment"===e.type&&(!!s.test(e.text)&&"rule"===e.next()?.type)}creator.postcss=!0;const s=/^\*\n +/;function isBrowserReferenceCommentNode(e){return"comment"===e.type&&t.test(e.text)}const t=/^\d+$/;function getBrowserData(e){const s=e.match(r);return s?{browserslist:s.map(e=>getBrowsersList(e.replace(n,"$1"))),isNumbered:!0}:{browserslist:getBrowsersList(e.replace(o,"")),isNumbered:!1}}const r=/(\n \* \d+\. (?:[^\n]|\n \* {4,})+)/g,o=/^\*\n \* ?|\n \*/g,n=/\n \* (?:( )\s*)?/g;function getBrowsersList(e){return e.split(i).slice(1).map(e=>e.split(c).filter(e=>e)).reduce((e,s)=>e.concat(s),[]).map(e=>e.replace(l,(e,s,t)=>"all"===s?">= 0%":`${s}${t?/^((?:\d*\.)?\d+)-$/.test(t)?` <= ${t.slice(0,-1)}`:` ${t}`:" > 0"}`).toLowerCase())}const i=/\s+in\s+/,c=/ and|, and|,/,l=/^\s*(\w+)(?: ((?:(?:\d*\.)?\d+-)?(?:\d*\.)?\d+[+-]?))?.*$/;function browserslistsOverlap(e,s){return s.some(s=>e.has(s))}export{creator as default}; diff --git a/plugins/postcss-browser-comments/package.json b/plugins/postcss-browser-comments/package.json index 98a6296446..1a7ee7df2e 100644 --- a/plugins/postcss-browser-comments/package.json +++ b/plugins/postcss-browser-comments/package.json @@ -52,12 +52,12 @@ "dist" ], "peerDependencies": { - "browserslist": "^4.27.0", + "browserslist": "^4.28.0", "postcss": "^8.4" }, "devDependencies": { "@csstools/postcss-tape": "*", - "browserslist": "^4.27.0" + "browserslist": "^4.28.0" }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", diff --git a/plugins/postcss-browser-comments/src/index.ts b/plugins/postcss-browser-comments/src/index.ts index ec3fc74d33..95c058575a 100644 --- a/plugins/postcss-browser-comments/src/index.ts +++ b/plugins/postcss-browser-comments/src/index.ts @@ -129,7 +129,7 @@ function getBrowsersList(text: string): Array { part => part.replace( GET_BROWSERSLIST_QUERY_REGEX, ($0, browser, query) => browser === 'all' - ? '> 0%' + ? '>= 0%' : `${browser}${query // eslint-disable-next-line @typescript-eslint/no-unsafe-argument ? /^((?:\d*\.)?\d+)-$/.test(query) diff --git a/plugins/postcss-text-decoration-shorthand/package.json b/plugins/postcss-text-decoration-shorthand/package.json index 577ddccb57..a90d9bcd20 100644 --- a/plugins/postcss-text-decoration-shorthand/package.json +++ b/plugins/postcss-text-decoration-shorthand/package.json @@ -56,7 +56,7 @@ }, "devDependencies": { "@csstools/postcss-tape": "*", - "autoprefixer": "^10.4.21" + "autoprefixer": "^10.4.22" }, "scripts": { "build": "rollup -c ../../rollup/default.mjs", diff --git a/plugins/postcss-todo-or-die/package.json b/plugins/postcss-todo-or-die/package.json index 6be035dfe8..c40737c82a 100644 --- a/plugins/postcss-todo-or-die/package.json +++ b/plugins/postcss-todo-or-die/package.json @@ -50,7 +50,7 @@ "dependencies": { "@csstools/css-parser-algorithms": "^3.0.5", "@csstools/css-tokenizer": "^3.0.4", - "browserslist": "^4.27.0" + "browserslist": "^4.28.0" }, "peerDependencies": { "postcss": "^8.4"