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

> Well in fact I don't see the need for `data()` if you can use `attr(data-name ident)`

`attr()` comes with [a bunch of security concerns](https://github.com/w3c/csswg-drafts/issues/5092), so I must say I like the proposed `data()` function. It narrows things down in scope – it only works on `data-*` attributes – allowing it to land. Later on, it can be turned into an alias for `attr(data-name ident)` if that ever becomes a thing.

> Be aware of https://github.com/w3c/csswg-drafts/issues/1929. And this would be circular:
>
> ```js
> counter-reset: ident("c" counter(c0)) 1;
> ```

I would assume those declarations to become IACVT.

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


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

Received on Thursday, 11 April 2024 11:13:55 UTC