Repository navigation
Commit 448a912
authored
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
- lib/css
- test
- configCases/css
- minimize-media-queries
- __snapshots__
- minimize-supports
- __snapshots__
- unitCases
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
0 commit comments