positioned-grid-items-006-ref.html (871B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Positioned grid items reference file</title> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 5 <style> 6 #grid { 7 display: grid; 8 grid: 150px 100px / 200px 300px; 9 justify-items: start; 10 align-items: end; 11 margin: 1px 2px 3px 4px; 12 padding: 20px 15px 10px 5px; 13 border-width: 9px 3px 12px 6px; 14 border-style: solid; 15 width: 550px; 16 height: 400px; 17 } 18 19 #firstItem { 20 background: magenta; 21 } 22 23 #secondItem { 24 background: cyan; 25 } 26 27 #thirdItem { 28 background: yellow; 29 } 30 31 #fourthItem { 32 background: lime; 33 } 34 </style> 35 36 <p>The test passes if it has the same output than the reference.</p> 37 38 <div id="grid"> 39 <div id="firstItem">First item</div> 40 <div id="secondItem">Second item</div> 41 <div id="thirdItem">Third item</div> 42 <div id="fourthItem">Fourth item</div> 43 </div>