Re: [csswg-drafts] [css-cascade-6] Add a `media()` function for `@import` (#10972)

Combining the resolution in this issue with:

[`RESOLVED: allow full reordering of all the current conditions on @import (MQ, scope, ...)`](https://github.com/w3c/csswg-drafts/issues/7348#issuecomment-2377818033)

would allow e.g.:

```
@import "foo.css" supports(width: 10px) or media(color) layer(mylayer);
@import "foo.css" scope(.elem) supports(width: 10px) or media(color) layer(mylayer);
@import "foo.css" supports(width: 10px) or media(color) scope layer;
```

Are we happy with those aesthetics?


-- 
GitHub Notification of comment by andruud
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10972#issuecomment-3675119508 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 19 December 2025 13:37:18 UTC