Status: FAIL | Duration: 15ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-flexbox/aspect-ratio-intrinsic-size-013.html
<!DOCTYPE html> <link rel="help" href="https://drafts.csswg.org/css-sizing-3/#intrinsic-sizes"> <link rel="match" href="aspect-ratio-intrinsic-size-013-ref.html"> <meta name="assert" content="A flex container with multiple items, only one of which has aspect-ratio, must recompute its preferred widths when its parent's height changes."> <p>Test passes if there is a filled green 130x100 rectangle.</p> <div id="target" style="height: 50px; width: min-content; background: green;"> <div style="display: flex; height: 100%; background: green;"> <div style="width: 30px;"></div> <div style="aspect-ratio: 1/1;"></div> </div> </div> <script> document.body.offsetTop; document.getElementById('target').style.height = '100px'; </script>
/css/css-flexbox/aspect-ratio-intrinsic-size-013-ref.html
<!DOCTYPE html> <p>Test passes if there is a filled green 130x100 rectangle.</p> <div style="width:130px; height:100px; background:green;"></div>