Re: [csswg-drafts] [css-values-5] attr()'s "px"/etc keywords (#11034)

Yup, Agenda+ to approve the `<number px>` syntax to be added to the `<syntax>` production, meaning "parse it as a number, then give it the px unit" (or whatever).

Despite my earlier preference to just push this functionality out entirely, I think this is the right way to go, since you can accept multiple types with `<syntax>` and only one of them might need to be unit-ified. For example, `attr(foo, <number px> | <percentage>)` can't be reproduced without this feature; trying to do `calc(attr(foo, <number> | <percentage>) * 1px)` will fail when a percentage is actually given.

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


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

Received on Thursday, 24 October 2024 19:54:27 UTC