-
Notifications
You must be signed in to change notification settings - Fork 114
Closed
Labels
Description
@import "ignore.css" (min-width: 25em);/* ignore.css */
@import "http://css-screen" screen;Becomes :
@import "http://css-screen" (min-width: 25em) and screen;Should be :
@import "http://css-screen" screen and (min-width: 25em);It might be interesting to adopt our media query parser : https://github.com/csstools/postcss-plugins/tree/postcss-preset-env--v8/packages/media-query-list-parser#readme
It has a typed object model which makes it easier to avoid these issues.
Alternatively it is possible to "special case" these keywords :
screenprintallnot
And then sorting the media query lists :
- these keywords first
- everything else later
- join with
and