row-track-sizing-005-ref.html (2543B)
1 <!DOCTYPE html> 2 <html> 3 <link rel="help" href="https://drafts.csswg.org/css-grid-3"> 4 <style> 5 .grid { 6 display: grid; 7 grid-template-rows: 90px 80px 100px; 8 grid-template-columns: 50px 100px 90px 50px 80px 100px 15px 10px; 9 height: 290px; 10 gap: 10px; 11 background: lightgoldenrodyellow; 12 } 13 </style> 14 <body> 15 <p>Test that grid-lanes tracks are correctly sized with mix of explicit and auto item placement.</p> 16 <div class="grid"> 17 <div style="width: 50px; height: 50px; background: orange;"></div> 18 <div style="width: 60px; height: 60px; background: pink;"></div> 19 <div style="width: 90px; height: 90px; background: teal; transform: translateX(-40px);"></div> 20 <div style="height: 100%; width: 25px; background: green; transform: translateX(-40px);"></div> 21 <div style="height: 100%; width: 60px; background: pink; transform: translateX(-65px);"></div> 22 <div style="height: 100%; width: 90px; background: teal; transform: translateX(-85px);"></div> 23 24 <div style="width: 30px; height: 30px; background: yellow; grid-row: 2;"></div> 25 <div style="width: 80px; height: 80px; background: purple; grid-row: 2; transform: translateX(-20px);"></div> 26 <div style="width: 40px; height: 40px; background: lime; grid-row: 2; transform: translateX(-40px);"></div> 27 <div style="height: 100%; width: 50px; background: orange; grid-row: 2; transform: translateX(-90px);"></div> 28 <div style="height: 100%; width: 80px; background: purple; grid-row: 2; transform: translateX(-90px);"></div> 29 <div style="height: 100%; width: 40px; background: lime; grid-row: 2; transform: translateX(-90px);"></div> 30 31 <div style="width: 25px; height: 25px; background: green; grid-row: 3;"></div> 32 <div style="width: 100px; height: 100px; background: blue; grid-row: 3; transform: translateX(-25px);"></div> 33 <div style="width: 15px; height: 15px; background: coral; grid-row: 3; transform: translateX(-25px);"></div> 34 <div style="width: 10px; height: 10px; background: fuchsia; grid-row: 3; transform: translateX(-100px);"></div> 35 <div style="height: 100%; width: 30px; background: yellow; grid-row: 3; transform: translateX(-140px);"></div> 36 <div style="height: 100%; width: 100px; background: blue; grid-row: 3; transform: translateX(-190px);"></div> 37 <div style="height: 100%; width: 15px; background: coral; grid-row: 3; transform: translateX(-190px);"></div> 38 <div style="height: 100%; width: 10px; background: fuchsia; grid-row: 3; transform: translateX(-190px);"></div> 39 </div> 40 </body> 41 </html>