Skip to content

merge_pr_53002

Compare
Choose a tag to compare
@github-actions github-actions released this 06 Jun 20:40

Treat auto min-sizes as zero rather than indefinite.

This is intended to improve the behavior of things like
calc-size(auto, max(24px, size))
which is used in the UA stylesheet from
https://chromium-review.googlesource.com/c/chromium/src/+/6462875

I believe this should only change behavior when calc-size() is used.
calc-size() exposes the difference between a zero value and an
indefinite value that makes the entire expression indefinite (which is
then replaced by zero).

Prior to
https://chromium-review.googlesource.com/c/chromium/src/+/6462875 the
added tests min-width-in-flex.html and min-height-in-flex.html fail.

Prior to this change, the added tests min-size-empty-001.html,
min-size-empty-001-ref.html, min-size-empty-002.html, and
min-size-empty-002-ref.html fail.

Note that min-width-in-flex.html does need white-space: nowrap, since
otherwise the option will wrap.

Change-Id: Id9f945a595ee79a735bfcb4813934d8b15ddab26
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6624714
Reviewed-by: Ian Kilpatrick ikilpatrick@chromium.org
Commit-Queue: David Baron dbaron@chromium.org
Cr-Commit-Position: refs/heads/main@{#1470729}