Re: [csswg-drafts] [css-cascade] When an import rule fails to load or has an unsatisfied condition, does the layer still count? (#6776)

The precise interleaving of layers and conditions in the import rule isn't specified, so we should be clearer about this, but I agree with @mirisuzanne on the details of how each case should work. The mental model should be that a layer is wrapped around the contents of the import (even if they're empty due to a load failure), and a condition is wrapped around the whole thing:

```css
@import url(...) layer(foo) (condition: bar);

/* equivalent to */

@media (condition: bar) {
 @layer foo {
   ...import contents...
 }
}
```

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


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

Received on Friday, 29 October 2021 16:26:36 UTC