Re: [csswg-drafts] [css-values] attr()'s url type seems wrong (#5079)

> [...] but then I'm not sure why we should have the type?

Yeah, we get "support" for that automatically by leaning on https://drafts.csswg.org/css-values-5/#typedef-syntax (generalized from the `@property` stuff). I guess it could allow _displaying_ an absolutized URL as a string, e.g. `a::after { content: string(attr(href, type(<url>))); }` (`string()` function proposed elsewhere), but that's the only "useful" behavior I can think of that doesn't require JS. I wouldn't object to just making it invalid (parse-time).


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


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

Received on Thursday, 2 January 2025 09:47:14 UTC