Skip to content

Commit 448a912

Browse files
fix(css): keep query keyword comments and tested selectors, resolve @Custom-Media fully (#22357)
* fix(css): keep query keyword comments and tested selectors, minify custom media Keep a comment between and/or/not and its condition in media and container queries, leave the selector a @supports selector() tests as written apart from whitespace and escapes, and minify @Custom-Media queries. * fix(css): resolve @Custom-Media wherever it is defined and however it is used Read every @Custom-Media rule before walking the sheet, so a name is written before the rule stating it, the last rule wins and names read through each other resolve. Write a list beside an and as one query per alternative, place a media type first, and read true and false. * fix(css): parenthesize a lowered media interval after a commented or and a not Read an or whose comment is kept as one, wrap an interval a not precedes, and leave a nested group, whose bounds are no interval's, as written.
1 parent acfccdc commit 448a912

13 files changed

Lines changed: 925 additions & 62 deletions

File tree

‎.changeset/037-css-supports-conditions.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
"webpack": patch
33
---
44

5-
Minify CSS `@supports` and `@import` conditions, and numbers with an exponent.
5+
Minify CSS `@supports`, `@import` and `@custom-media` conditions, and exponent numbers.

0 commit comments

Comments
 (0)