-
Notifications
You must be signed in to change notification settings - Fork 756
Closed
Labels
Description
from https://lists.w3.org/Archives/Public/www-style/2015Sep/0073.html by Tom Potts
There's no example of an @import with both supports and media queries. The
syntax specification states that the supports must go before the media
query, but this is not specifically called out. Which of the following are
valid?
- @import url("xxx.css") supports(display: flex) print;
- @import url("xxx.css") print supports(display: flex);
- @import url("narrow.css") supports(display: flex) handheld and (max-width: 400px);
- @import url("narrow.css") supports(display: flex) (handheld and (max-width: 400px));
- @import url("narrow.css") supports(display: flex) and handheld and (max-width: 400px);
- @import url("xxx.css") supports((display: flex) and (display: block));
- @import url("xxx.css") supports(display: flex) and supports(display: block);
My reading of the spec is that 1, 3 and 6 are valid, 2, 5 and 7 are
invalid, and I'm not sure about 4. An example or two would help make this
clearer.