- From: Bramus via GitHub <noreply@w3.org>
- Date: Thu, 22 Jan 2026 10:55:25 +0000
- To: public-css-archive@w3.org
> Right now _nothing_ is exported from a style sheet to JS except for the sheet itself in the default export. This makes sense to me (and is also what I meant here). > I have been concerned about needing to know which things create named exports as that set expands in the future. How would we export class name, and would that use something like `@export` or a new at-rule for declaring a class name or selector, and that new rule creates a named export? For Selectors specifically there is [`@custom-selector`](https://drafts.csswg.org/css-extensions/#custom-selectors) _(on paper, it’s not implemented anywhere AFAIK)_ that – I think – could behave the same way as `@sheet` does: it defines and exports the thing. _(This seems like food for a separate issue that should not block `@sheet` going forward)_ -- GitHub Notification of comment by bramus Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5629#issuecomment-3783770347 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 22 January 2026 10:55:26 UTC