Re: [csswg-drafts] [css-scoping] Scoping of functions, other name-defining at-rules and custom idents (#11798)

Hmm, this is an interesting idea. It can be expanded to something like: adding `@local --foo` inside _any_ block could make this ident local.

I see two issues with this:

1. How do we recall these from outside? Do we make them completely private? This might be useful, but maybe a separate feature? Or, it would be an extension of the `@namespace` proposal, where you couldn't recall from outside a `@namespace` without a name, similar to how you can't extend an anonymous `@layer`.

2. If you want to have multiple idents, it can be a bit cumbersome to define all of them. Like, imagine you want a local set of design-tokens. Having a wrapping at-rule might be more convenient.

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


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

Received on Monday, 3 March 2025 20:06:38 UTC