grid-whitespace-handling-2-ref.xhtml (1862B)
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 reference case is the same as the testcase, but with an explicit <div> 8 around each run of content that we expect to turn into an anonymous 9 grid item (to ensure that the whitespace is included). 10 --> 11 <html xmlns="http://www.w3.org/1999/xhtml"> 12 <head> 13 <title>CSS Reftest Reference</title> 14 <link rel="author" title="Daniel Holbert" href="mailto:dholbert@mozilla.com"/> 15 <link rel="stylesheet" type="text/css" href="support/ahem.css" /> 16 <style> 17 div.a, div.b, div.grid { height: 100px; } 18 div.grid { 19 white-space: pre; 20 border: 1px dashed blue; 21 width: 200px; 22 display: grid; 23 justify-content: space-around; 24 } 25 div.a { 26 width: 30px; 27 background: lightgreen; 28 } 29 div.b { 30 width: 20px; 31 background: lightblue; 32 } 33 </style> 34 </head> 35 <body> 36 <!-- spaces around inline content at the beginning of grid --> 37 <div class="grid"><div> abc</div><div class="a"/></div> 38 <div class="grid"><div>abc </div><div class="a"/></div> 39 <div class="grid"><div> abc </div><div class="a"/></div> 40 41 <!-- spaces around inline content at the end of grid --> 42 <div class="grid"><div class="a"/><div> abc</div></div> 43 <div class="grid"><div class="a"/><div>abc </div></div> 44 <div class="grid"><div class="a"/><div> abc </div></div> 45 46 <!-- whitespace around inline content in between grid items --> 47 <div class="grid"><div class="a"/><div> abc</div><div class="b"/></div> 48 <div class="grid"><div class="a"/><div>abc </div><div class="b"/></div> 49 <div class="grid"><div class="a"/><div> abc </div><div class="b"/></div> 50 </body> 51 </html>