grid-gutters-004.html (968B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Support for grid-gap shorthand property as an alias for gap setting both to different values</title> 4 <link rel="help" href="https://www.w3.org/TR/css-grid-1/#gutters"> 5 <link rel="help" href="https://www.w3.org/TR/css-align-3/#gap-shorthand"> 6 <link rel="help" href="https://www.w3.org/TR/css-align-3/#gap-legacy"> 7 <link rel="match" href="../reference/grid-different-gutters-ref.html"> 8 <link rel="author" title="Rachel Andrew" href="mailto:me@rachelandrew.co.uk"> 9 <style> 10 #grid { 11 display: grid; 12 width:200px; 13 grid-gap: 40px 20px; 14 grid-template-columns: 90px 90px; 15 grid-template-rows: 90px 90px; 16 background-color: green; 17 } 18 19 #grid > div { 20 background-color: silver; 21 } 22 </style> 23 24 <p>The test passes if it has the same visual effect as reference.</p> 25 <div id="grid"> 26 <div></div> 27 <div></div> 28 <div></div> 29 <div></div> 30 </div>