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

Yes, my `@namespace` proposal is basically about lexical scoping, with every ident inside becoming local to that namespace. Using an `@layer` with this _could_ be an option, but I am not sure if we want to override them rather than introducing a separate single-purpose concept.

One could think that with many different at-rules, you could want to sometimes combine them, like for every component use `@layer`, `@scope`, and `@namespace` — and that's a valid use case, but I think this is something that could be handled either by custom at-rules, or by mixins, where you could combine as many concepts in one go, creating your own architectural wrapper, and not merging different concepts at the language level.

-- 
GitHub Notification of comment by kizu
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11798#issuecomment-2695465073 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:28:20 UTC