grid-placement-using-named-grid-lines-004.html (937B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Grid item placement with '<integer> && <custom-ident>' 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 right line when using the '<integer> && <custom-ident>' syntax and there is an auto repeat()."> 8 <style> 9 .grid { 10 display: grid; 11 width: 300px; 12 height: 300px; 13 grid-template-columns: [foo] repeat(auto-fill, 100px [foo]); 14 grid-template-rows: repeat(auto-fill, [foo] 100px); 15 } 16 .grid > div { 17 grid-area: 1 foo / 1 foo; 18 background: green; 19 } 20 </style> 21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 22 <div class="grid"> 23 <div></div> 24 </div>