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

> realistically we're not going to use the full grammar syntax here

Even if at some point we want to allow `px` as a syntax keyword instead of an unit, I guess we could use brackets to disambiguate (see https://drafts.csswg.org/css-values/#component-combinators). So `attr(foo px)` would add the unit, and `attr(foo [px])` would parse the attribute as the keyword or whatever is supposed to happen.

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


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

Received on Monday, 14 October 2024 22:40:47 UTC