Re: [csswg-drafts] Proposal: CSS @sheet (#11509)

Also, in case this is also a source of confusion, for consistency I have been using the same identifier names as the original and updated explainer:

```html
<style id="sheet">
@sheet foo {
  div {
    color: red;
  }
}
</style>
```

Where "#sheet" is not a URL fragment identifier to a sheet, but the id of the style element that contains a sheet. "#foo" is the identifier of the sheet inside the style element.

I see people calling any other CSS rules in the #sheet id style element that are not inside a `@sheet` block "rules outside of sheets", so I am too. So `<link rel="stylesheet" href="#sheet" />` in explainer terminology perhaps confusingly doesn't refer to sheets at all, but rules outside of sheets.

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


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

Received on Monday, 10 February 2025 22:38:51 UTC