Re: [csswg-drafts] [css-values] A way to dynamically construct custom-ident and dashed-ident values (#9141)

> Should it be possible to assign values to custom properties with constructed `dashed-ident`'s?
> 
> :root {
>   ident("--" "my-namespace" "-" "main-color"): pink; /* is this still possible since nesting? */
> }

This seems tricky because of arbitrary peek-ahead (what makes `ident(...):pink;` the declaration different to `ident(...):pink {}` the rule - other than the `{` N tokens to the right). _Unless_ we explicitly disallow the `ident(` function token in a style rule's prelude, at which point that may gate off future expressivity for selectors - but maybe that's okay?

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


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

Received on Wednesday, 11 December 2024 14:35:50 UTC