fune/testing/web-platform/tests/css/css-flexbox/flex-aspect-ratio-img-column-002.html
Aleks Totic f2ef59138c Bug 1467579 [wpt PR 11387] - Use correctly sized images in flexbox tests, a=testonly
Automatic update from web-platform-testsUse correctly sized images in flexbox tests

Bug: 467127
Change-Id: I4176cb0e4216ced9434c5c84832df6d6a5cd37d3
Reviewed-on: https://chromium-review.googlesource.com/1089205
Reviewed-by: Chris Harrelson <chrishtr@chromium.org>
Commit-Queue: Aleks Totic <atotic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#565090}

--

wpt-commits: 087ee437dd3524d62a3375e5884094b4e9cba75e
wpt-pr: 11387
2018-06-26 02:49:03 +00:00

41 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<title>CSS Flexible Box Test: Aspect ratio handling of images</title>
<link rel="author" title="Google Inc." href="http://www.google.com/" />
<link rel="help" href="https://drafts.csswg.org/css-flexbox-1/#algo-cross-item" />
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
<meta name="assert" content="Test that we compute the correct aspect-ratio based cross size when a height is specified" />
<style type="text/css">
#reference-overlapped-red {
position: absolute;
background-color: red;
width: 100px;
height: 100px;
z-index: -1;
}
#constrained-flex {
display: flex;
flex-direction: column;
height: 10px;
}
img {
min-width: 0;
min-height: 0;
flex: none;
height: 100px;
align-self: flex-start;
}
</style>
</head>
<body>
<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/100x100-green.png" />
</div>
</body>
</html>