github web-platform-tests/wpt merge_pr_47495

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

[layout] Rework inline-size aspect-ratio logic.

Previously we had special logic to determine if we had an aspect-ratio
present, and manually resolve the size.

Instead of this we should have been changing what "auto" maps to when
we have an aspect-ratio present.

This patch:

  1. Checks if we can determine the inline-size from the aspect-ratio
    by seeing if we can resolve the block-size.
  2. From this maps the "auto" length to "fit-content" when needed.
  3. Changes the automatic minimum size logic to determine if our
    main length has a content-based size.

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

Don't miss a new wpt release

NewReleases is sending notifications on new releases.