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

andruud has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-conditional-6] Behavior of style(0 = 0px) ==
A literal `0` may be used for any numeric value where a unit would normally be expected, e.g. `width: 0`. Should this unitless behavior also work for `style()` range syntax? In other words, is `style(0 = 0px)` "false" due to a type mismatch, or is it "true"?

This was also discussed in https://github.com/w3c/csswg-drafts/issues/8376, and the consensus seems to be that `0 = 0px` => "true" is the correct behavior. (cc @mirisuzanne ,@kizu)

There was also a question about whether or not we currently allow unitless zero in MQs with range syntax (@emilio), and the answer to that is "yes" (https://jsbin.com/taleroderi).

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12236 using your GitHub account


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

Received on Tuesday, 27 May 2025 12:31:32 UTC