- From: Wii via GitHub <noreply@w3.org>
- Date: Thu, 13 Nov 2025 12:37:21 +0000
- To: public-css-archive@w3.org
If I have a `@namespace` block around my entire CSS file for convenience, and want to set a "global" property on an element (say, `button { --corner-radius: .3em; }` which gets used by a completely different framework that I cannot modify, would there be an ergonomic way of doing that, or would I have to move that outside of the `@namespace` block and thereby split the styles of my `button` elements into two locations within the file?
My intuition is that defining individual variables that automatically get lexically scoped to the surrounding block would be easier to use in my everyday usage. Speaking as a framework user and per-site CSS author here; framework authors may have different needs.
--
GitHub Notification of comment by DarkWiiPlayer
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11798#issuecomment-3527620500 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 13 November 2025 12:37:22 UTC