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

`@namespace `, `@sheet`, `@import`, `@layer` and `@scope` being mentioned to avoid naming conflicts in custom idents – which are nowadays mostly double-dashed like `--foo` – reminded me of [#6099](https://github.com/w3c/csswg-drafts/issues/6099#issuecomment-801374981) where I tried (as the issue matured) to “introduce write-protected variables in the space accessible by `var()`” by allowing to indirectly create single-dashed idents like `-bar-foo`  from double-dashed ones in a way that inherently ruled out clashes with legacy vendor-prefixed properties and values like `-vnd-foo`. 

However, the prefixing mechanism I envisioned therein could not be applied to all the cases mentioned in the initial comment of this issue, i.e. not with strings and non-dashed custom idents, but neither in the general case with properties that directly (i.e. without an encapsulating function such as `var()`) accept a named ident as their value. 

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


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

Received on Tuesday, 14 October 2025 14:24:06 UTC