mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 13:18:45 +02:00
Automatic update from web-platform-tests [css-flexbox] Clamp the cross-size by the min/max size ...when computing the main-axis size of a flex item. As per this change: https://drafts.csswg.org/css-flexbox/#change-2018-used-cross-size R=dgrogan@chromium.org, eae@chromium.org Bug: 972576 Change-Id: I11a1ac14e2e0e44e39fcd45d4568874da2dcfce8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1672014 Auto-Submit: Christian Biesinger <cbiesinger@chromium.org> Reviewed-by: David Grogan <dgrogan@chromium.org> Reviewed-by: Emil A Eklund <eae@chromium.org> Commit-Queue: Christian Biesinger <cbiesinger@chromium.org> Commit-Queue: Emil A Eklund <eae@chromium.org> Cr-Commit-Position: refs/heads/master@{#671485} -- wpt-commits: cc0f6ffd9998bdc180d3c70354656f438d99f701 wpt-pr: 17434
26 lines
650 B
HTML
26 lines
650 B
HTML
<!DOCTYPE html>
|
|
<link rel="author" title="Google LLC" href="http://www.google.com" />
|
|
<link rel="help" href="https://drafts.csswg.org/css-flexbox/#line-sizing" />
|
|
<title>css-flexbox: Tests that we use the aspect ratio, clamped by min/max, to compute the main size</title>
|
|
<link rel="match" href="../reference/ref-filled-green-100px-square.xht" />
|
|
|
|
<style>
|
|
.flex {
|
|
display: flex;
|
|
width: 100px;
|
|
flex-direction: column;
|
|
}
|
|
|
|
img {
|
|
max-width: 100%;
|
|
width: 500px;
|
|
min-height: 0;
|
|
}
|
|
</style>
|
|
|
|
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
|
|
|
|
<div class="flex">
|
|
<img src="support/100x100-green.png">
|
|
</div>
|
|
|