Re: [csswg-drafts] [css-values-5] Normalized attr() substitution value (#10503)

IIRC, the "single token" thing was written in back in the day to simplify implementation; for whatever reason, impls didn't want to invoke their full CSS parser on attribute values. (Similarly, the `color` type is restricted to just hex colors and color name keywords.)

I suspect that whatever reasons impls had for avoiding that at the time are probably less pressing now, and we should just invoke the CSS parser normally? We invoke the CSS parser for a few *other* HTML attributes already anyway, like `<meta name=color-scheme>` or `<img srcset>`

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


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

Received on Tuesday, 15 October 2024 20:56:39 UTC