Re: [csswg-drafts] [css-cascade-7] What happens with duplicate @sheet identifiers? (#12001)

This does indeed surface a nuance.

I don't think the intention is that first each stylesheet is imported and applied fully and only in a second pass that the specific `@sheet`'s are picked.

If that is the issue you are referring to?

Instead each import statement that imports a specific `@sheet` only applies the contents of that `@sheet` rule.

The result should indeed be `bold and red`.

------

```css
@import foo from "a.css";
@import foo from "b.css";
```

As `foo` is local to each `@import` statement there isn't any conflict between the two `foo` names sheets. Or at least that is my understanding :)

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


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

Received on Friday, 25 April 2025 20:19:30 UTC