Bug 1794188 [wpt PR 36174] - [css-flex] Fix column-wrap container max < min error...
[gecko.git] / testing / web-platform / tests / css / css-flexbox / intrinsic-size / col-wrap-014.html
blob5861d829b5822e236de2288ca7e0f3c1a3716cec
1 <!DOCTYPE html>
2 <link rel="author" title="David Grogan" href="mailto:dgrogan@chromium.org">
3 <link rel="help" href="https://drafts.csswg.org/css-flexbox/#intrinsic-sizes">
4 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht">
6 <meta name="assert"
7 content="The second item contributes 25px width due to max-width, not 75px, even though the available size for the second item is 75px." />
9 <style>
10 .item {
11 flex: 0 0 100px;
12 min-height: 0px;
15 </style>
16 <p>Test passes if there is a filled green square and <strong>no red</strong>.
18 <div
19 style="display: flex; flex-flow: column wrap; width: max-content; height: 100px; background: green;">
20 <div class="item">
21 <div style="width: 75px;"></div>
22 </div>
23 <div class="item" style="max-width: 25px;">
24 <div style="width: 50px;"></div>
25 </div>
26 </div>