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

> Are we happy with those aesthetics?

Not personally.
I think it is confusing.
As if `scope layer` in the last example only applies to the `or media(color)` branch.

Requiring parenthesis is maybe better:

```
@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;
```


-- 
GitHub Notification of comment by romainmenke
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/10972#issuecomment-3675170575 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:53:52 UTC