Re: [csswg-drafts] [css-cascade-6] Add ability to scope rules from an imported stylesheet (#7348)

Currently the order does matter for the existing parts :
1. `layer`
2. `supports()`
3. media queries list

Any other order is invalid.

----

I agree that a non-fixed order might be better.
Makes it easier for authors to get it right.

> The order in which they are processed could be fixed though, similar to how the individual transform properties are applied in a predetermined order.

Probably safe to specify this, but I don't think it can have observable side-effects if different browsers apply conditions in different orders. (`layer` must still be applied at a specific point relative to all the conditions)

The order also isn't specified today for `supports()` and media query lists : https://drafts.csswg.org/css-cascade-5/#conditional-import

Unless I am overlooking it?

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


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

Received on Thursday, 14 September 2023 13:56:08 UTC