grid-whitespace-handling-1b.xhtml (1412B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 <!-- 3 Any copyright is dedicated to the Public Domain. 4 http://creativecommons.org/publicdomain/zero/1.0/ 5 --> 6 <!-- 7 This test is like the -1a variant, but with the whitespace removed between 8 grid items (since that whitespace should be ignored anyway, if we're 9 doing things right). 10 --> 11 <!-- XXXdholbert Does this testcase add value? 12 (Maybe it should be an alternate reference case.) --> 13 <html xmlns="http://www.w3.org/1999/xhtml"> 14 <head> 15 <title>CSS Test: Test that grid items are created correctly</title> 16 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 17 <link rel="help" href="http://www.w3.org/TR/css3-grid/#grid-items"/> 18 <link rel="match" href="grid-whitespace-handling-1-ref.xhtml"/> 19 <style> 20 div { height: 100px; } 21 div.grid { 22 border: 1px dashed blue; 23 width: 200px; 24 display: grid; 25 justify-content: space-around; 26 } 27 div.a { 28 width: 30px; 29 background: lightgreen; 30 } 31 div.b { 32 width: 20px; 33 background: lightblue; 34 } 35 img { width: 40px; } 36 </style> 37 </head> 38 <body> 39 <div class="grid"><div class="a"/></div> 40 41 <div class="grid"><div class="a"/><div class="b"/></div> 42 43 <div class="grid" 44 ><img src="solidblue.png" 45 /><img src="solidblue.png"/></div> 46 </body> 47 </html>