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

I am very skeptical of introducing _any_ more complexity to name-based lookups than the substantial amount of complexity we already get from ShadowDOM.

```
@scope namespace (.foo) {
 @function --foo() { result: lightgreen }
}
```

This is not really implementable. `@scope` (despite being an at-rule) is essentially a selector feature. Doughnut-less "implicit"  scopes (`@scope {}`) _could_ maybe be used.

> Examples: custom properties

I'm fairly certain (tree-)scoped custom properties is off the table forever. It will likely cause unacceptable performance regressions.

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


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

Received on Wednesday, 5 March 2025 11:14:55 UTC