Re: [csswg-drafts] [css-values] Distinction between `attr(foo type(<string>))` and `attr(foo string)` is too subtle (#11645)

> One thing that confuses me is that once type(<string>) is used, then the attribute value in HTML must be added with two levels of nested quotes, otherwise no string will be inserted or the value will use fallback.

Yes, that's intentional. `type(<string>)` isn't a very useful type for `attr()` to use, it just comes along for the ride with the rest of the syntaxes. That's the whole reason we have a different value (`raw-string`) for just "use the attribute value as a string".

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


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

Received on Thursday, 22 May 2025 23:54:00 UTC