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

> > Use id() and `data(foo)` functions that generate idents from attributes
> 
> If `data()` reads arbitrary `data-*` attributes, I don't think it should produce an ident, at least by default.

What should it be? A string? In what properties would this string be used?
Perhaps it can have a special type, something like attribute-value that can be used inside `ident()` and perhaps later on inside `url()`?

> > If a property accepts a single ident and nothing else, the ident function can be implied
> 
> This seems like a huge forwards-compatibility problem.

Fair enough. We can decide this on a case-by-case basis or always require `ident()`.

-- 
GitHub Notification of comment by noamr
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9141#issuecomment-2049297524 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 09:33:15 UTC