WAI
Status Update
Comments
db...@chromium.org <db...@chromium.org> #2
I think this is the expected behavior, at least based on the current spec, since I think calc()
works the same way. But I suppose it's possible calc-size()
should be different given its different intended uses. I should probably file a spec issue.
yi...@gmail.com <yi...@gmail.com> #4
It looks like calc-size(0)
should be supported, and considering that calc-size() is already
db...@chromium.org <db...@chromium.org> #5
I think now that we've dropped the single-argument form of calc-size()
in favor of using the interpolate-size
property to opt in to animations/transitions, I'd probably lean towards keeping the current behavior which is consistent with calc()
.
ap...@google.com <ap...@google.com> #6
Project: chromium/src
Branch: main
commit 44ef8226c901a4c4f5bbeefc4ab85d770cecb4a6
Author: David Baron <dbaron@chromium.org>
Date: Wed Aug 14 17:50:03 2024
Add tests for unitless 0 being invalid in calc-size().
Seehttps://github.com/w3c/csswg-drafts/issues/10354
Bug: 341564374, 313072
Change-Id: Ie0e03b82812b0f7748aaa5f892c60347bcf996e0
Reviewed-on:https://chromium-review.googlesource.com/c/chromium/src/+/5788112
Auto-Submit: David Baron <dbaron@chromium.org>
Reviewed-by: Daniil Sakhapov <sakhapov@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1341797}
M third_party/blink/web_tests/external/wpt/css/css-values/calc-size/calc-size-parsing.html
https://chromium-review.googlesource.com/5788112
Branch: main
commit 44ef8226c901a4c4f5bbeefc4ab85d770cecb4a6
Author: David Baron <dbaron@chromium.org>
Date: Wed Aug 14 17:50:03 2024
Add tests for unitless 0 being invalid in calc-size().
See
Bug: 341564374, 313072
Change-Id: Ie0e03b82812b0f7748aaa5f892c60347bcf996e0
Reviewed-on:
Auto-Submit: David Baron <dbaron@chromium.org>
Reviewed-by: Daniil Sakhapov <sakhapov@chromium.org>
Commit-Queue: Daniil Sakhapov <sakhapov@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1341797}
M third_party/blink/web_tests/external/wpt/css/css-values/calc-size/calc-size-parsing.html
Description
The current CSS specification allows length units to omit units. calc-size(0px) should be equivalent to calc-size(0). Chrome does not support this in its current implementation.
This is important for CSS compressors, as it saves two characters.