grid-placement-using-named-grid-lines-002.html (930B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Grid item placement with named line and auto repeat()</title> 4 <link rel="author" title="Oriol Brufau" href="mailto:obrufau@igalia.com"> 5 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#line-placement"> 6 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 7 <meta name="assert" content="Grid placement algorithm is able to select the 1st line by name when the 1st track is defined with auto repeat()."> 8 <style> 9 .grid { 10 display: grid; 11 width: 100px; 12 height: 100px; 13 background: red; 14 grid-template-columns: [area-start] repeat(auto-fill, 10px) [area-end]; 15 grid-template-rows: [area-start] repeat(auto-fill, 10px [area-start]) [area-end]; 16 } 17 .grid > div { 18 grid-area: area; 19 background: green; 20 } 21 </style> 22 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 23 <div class="grid"> 24 <div></div> 25 </div>