github web-platform-tests/wpt merge_pr_47528

latest releases: merge_pr_49470, epochs/three_hourly/2024-12-03_06H, epochs/six_hourly/2024-12-03_06H...
5 months ago

[layout] Fix content-contributions of calc-size().

Previously we'd just treat calc-size() as effectively the same as auto.

This was incorrect. Instead:

  • Attempt to resolve the main length, if this succeeds this is our
    contribution. (This will capture the calc-size(min-content, size)
    case.
  • If this returns an indefinite size, we force the sizing keyword
    as auto, and for the min-size treat auto as min-content, and for
    the max-size treat auto as max-content.

This patch also fixes some "depends_on_block_constraints" logic
(accidentally) in cases like:

where we weren't properly calculating this value.

Bug: 40339056
Change-Id: I22ee162deb49c37b948e5a22a12218b392710603
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5750362
Reviewed-by: David Baron dbaron@chromium.org
Commit-Queue: Ian Kilpatrick ikilpatrick@chromium.org
Auto-Submit: Ian Kilpatrick ikilpatrick@chromium.org
Commit-Queue: David Baron dbaron@chromium.org
Cr-Commit-Position: refs/heads/main@{#1339188}

Don't miss a new wpt release

NewReleases is sending notifications on new releases.