Files
sousa-gecko/testing/web-platform/tests/css/css-sizing/fit-content-min-inline-size.html
T
Ian Kilpatrick 8786152779 Bug 1954553 [wpt PR 51392] - [layout] Fix fit-content on min/max inline-sizes for contributions., a=testonly
Automatic update from web-platform-tests
[layout] Fix fit-content on min/max inline-sizes for contributions.

fit-content for the min-contribution calculation should be treated as
min-content, and for the max-contribution max-content. As per:
https://github.com/w3c/csswg-drafts/issues/10721

Fixes tests for min-width:stretch to resolve as zero, and
max-width:stretch as infinity as per:
https://github.com/w3c/csswg-drafts/issues/11006

Fixed: 402760799
Change-Id: I109ffdd057db45236e3f95f174e0ab8b684060d5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6357845
Reviewed-by: Morten Stenshorne <mstensho@chromium.org>
Commit-Queue: Ian Kilpatrick <ikilpatrick@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1433610}

--

wpt-commits: bd81ee4af33248ccd3a153a9389876d8f4b51166
wpt-pr: 51392
2025-03-18 10:41:53 +00:00

10 lines
479 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://github.com/w3c/csswg-drafts/issues/10721">
<link rel="match" href="../reference/ref-filled-green-100px-square-only.html">
<p>Test passes if there is a filled green square.</p>
<div style="width: fit-content; height: 100px; background: green;">
<div style="min-width: fit-content; width: 10px;">
<span style="display: inline-block; width: 50px;"></span><span style="display: inline-block; width: 50px;"></span>
</div>
</div>