Re: [csswg-drafts] Is <attr-unit> parse-time behavior intentional? (#13060)

I agree `attr(foo cool-new-unit, fallback)` seems quite similar to `env(cool-new-env, fallback)`.

Note: both `env()` and units can be author-defined (in the future):

 - https://drafts.csswg.org/css-link-params/#using (env())
 - https://drafts.csswg.org/css-variables-2/#variable-units (units)

Obviously, `env(--unknown-env, fallback)` should take the fallback, so probably `attr(foo --unknown-unit, fallback)` should take the fallback too. At that point, `attr(foo unknown-unit, fallback)` _not_ taking the fallback starts to look inconsistent.

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


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

Received on Thursday, 6 November 2025 10:37:36 UTC