replaced-element-001.html (777B)
1 <!DOCTYPE html> 2 <title>CSS aspect-ratio: grid item (ratio-dependent: inline)</title> 3 <link rel="author" title="Mozilla" href="https://www.mozilla.org/"> 4 <link rel="help" href="https://drafts.csswg.org/css-sizing-4/#aspect-ratio"> 5 <link rel="help" href="https://drafts.csswg.org/css-grid/#grid-item-sizing"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht" /> 7 <style> 8 #reference-overlapped-red { 9 position: absolute; 10 background-color: red; 11 width: 100px; 12 height: 100px; 13 z-index: -1; 14 } 15 </style> 16 17 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 18 19 <div id="reference-overlapped-red"></div> 20 <div style="display: grid;"> 21 <svg style="background: green; height: 100px;" viewBox="0 0 1 1"></svg> 22 </div>