- From: Wii via GitHub <sysbot+gh@w3.org>
- Date: Wed, 10 Apr 2024 17:54:53 +0000
- To: public-css-archive@w3.org
I recently had a discussion under a dev.to post about CSS and the topic of scoping came up again, which reminded me of a problem I've already occasionally faced with custom properties that I expect will only get worse with this new feature and that's name collisions. Prefixing *works*, but I'm wondering if there's any proposal out there to provide some sort of name scoping. I know CSS modules are *a thing* but from what I understand those are only meant for using CSS inside JS, but I'm specifically looking for something that lets me, as a CSS author, write a mixin like `--button` and not have to worry that a user might `<link>` another stylesheet that also defines that mixin. Without something like that, I feel like this feature would be a lot less convenient than it could ideally be. -- GitHub Notification of comment by DarkWiiPlayer Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9350#issuecomment-2048147665 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 10 April 2024 17:54:54 UTC