grid-gutters-003.html (893B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: Support for gap shorthand property of row-gap and column-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="match" href="../reference/grid-different-gutters-ref.html"> 7 <link rel="author" title="Rachel Andrew" href="mailto:me@rachelandrew.co.uk"> 8 <style> 9 #grid { 10 display: grid; 11 width:200px; 12 gap: 40px 20px; 13 grid-template-columns: 90px 90px; 14 grid-template-rows: 90px 90px; 15 background-color: green; 16 } 17 18 #grid > div { 19 background-color: silver; 20 } 21 </style> 22 23 <p>The test passes if it has the same visual effect as reference.</p> 24 <div id="grid"> 25 <div></div> 26 <div></div> 27 <div></div> 28 <div></div> 29 </div>