Re: [csswg-drafts] [css-conditional-6] Behavior of style(0 = 0px) (#12236)

Note that in calculations, a unitless zero is *not* equivalent to a unit'd zero. Unitless zeros for lengths/angles are just an authoring convenience only allowed when used directly to satisfy a `<length>` (and in a few cases that explicitly call it out, an `<angle>`).

I'm supportive of `0 = 0px` being a type mismatch and not being allowed.

(It's allowed in MQs because, given any particular MQ name, we know what the corresponding value type is, and thus can apply the normal "0 is allowed as a `<length>`" rule.)

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


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

Received on Thursday, 26 June 2025 20:49:25 UTC