fune/testing/web-platform/tests/css/css-flexbox/flex-minimum-width-flex-items-010.html
David Grogan cefe32d83e Bug 1590325 [wpt PR 19533] - [LayoutNG] Obey item's aspect ratio for implied minimum main sizes, a=testonly
Automatic update from web-platform-tests
[LayoutNG] Obey item's aspect ratio for implied minimum main sizes

This only modifies the content size suggestion from
https://drafts.csswg.org/css-flexbox/#content-size-suggestion, the
transferred size suggestion
https://drafts.csswg.org/css-flexbox/#transferred-size-suggestion isn't
done yet.

The 4th case from
https://cs.chromium.org/chromium/src/third_party/blink/web_tests/css3/flexbox/minimum-size-image.html
now passes.

Bug: 845235
Change-Id: Id731437de2a116f94cdada1a93e6bcce86f5f9eb
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1842618
Reviewed-by: Christian Biesinger <cbiesinger@chromium.org>
Commit-Queue: David Grogan <dgrogan@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707562}

--

wpt-commits: 42b683c0faeeced71e36afce8e8dbb41e924fae7
wpt-pr: 19533
2019-10-24 18:04:37 +01:00

31 lines
1.1 KiB
HTML

<!DOCTYPE html>
<title>CSS Flexible Box Test: Minimum width of flex items</title>
<link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org" />
<link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com" />
<link rel="help" href="http://www.w3.org/TR/css-flexbox-1/#min-size-auto" title="4.5. Implied Minimum Size of Flex Items" />
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="Implied minimum main content suggestion accounts for maximum cross size when items have an aspect ratio.">
<style type="text/css">
#reference-overlapped-red {
position: absolute;
background-color: red;
width: 100px;
height: 100px;
z-index: -1;
}
#constrained-flex {
display: flex;
width: 10px;
}
#test-flex-item-overlapping-green {
max-height: 100px;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="reference-overlapped-red"></div>
<div id="constrained-flex">
<img id="test-flex-item-overlapping-green" src="support/200x200-green.png" />
</div>