flex-aspect-ratio-042.html (630B)
1 <!DOCTYPE html> 2 <link rel="help" href="https://bugs.chromium.org/p/chromium/issues/detail?id=1335009"> 3 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> 4 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 5 <div style="display: flex;"> 6 <div style="background: green;"> 7 <div style="height: 50px; width: 100px;"></div> 8 <button id="target" style="all: unset; display: block; height: 90%; line-height: 0; aspect-ratio: 1; min-height: 50px;"></button> 9 </div> 10 </div> 11 <script> 12 document.body.offsetTop; 13 document.getElementById('target').style.height = '100%'; 14 </script>