[csswg-drafts] [css-values-5] should 'calc-size(0)' work? (#10354)

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

== [css-values-5] should 'calc-size(0)' work? ==
In https://issues.chromium.org/341564374 @yisibl pointed out that `calc-size(0)` doesn't work.  I think this matches the [current spec](https://drafts.csswg.org/css-values-5/#calc-size) which defines the behavior to work like `calc()`, where it was intentional that `calc(0)` doesn't work.

I think despite the parallels with `calc()` we may want to consider making `calc-size(0)` work correctly, because:
* `calc-size()` is explicitly for lengths only so there's less concern about unit algebra making sense
* it would be nice to preserve the principle that "wrap an animation endpoint in `calc-size()`" works in general, and `0` is one of the most common length animation endpoints.

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


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

Received on Monday, 20 May 2024 13:55:24 UTC