| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"> |
| 2 <html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 <head> |
| 4 <title>CSS Grid Layout Test: floats do not intrude into an inline grid</
title> |
| 5 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igal
ia.com" /> |
| 6 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-containers"
title="3.1 Establishing Grid Containers" /> |
| 7 <link rel="match" href="../../css21/reference/ref-filled-green-100px-squ
are.xht" /> |
| 8 <style type="text/css"><![CDATA[ |
| 9 #reference-overlapped-red { |
| 10 position: absolute; |
| 11 background-color: red; |
| 12 width: 100px; |
| 13 height: 100px; |
| 14 z-index: -1; |
| 15 } |
| 16 |
| 17 .test-overlapping-green { |
| 18 background-color: green; |
| 19 width: 50px; |
| 20 height: 100px; |
| 21 } |
| 22 |
| 23 .float { |
| 24 float: left; |
| 25 } |
| 26 |
| 27 .inline-grid { |
| 28 display: inline-grid; |
| 29 } |
| 30 ]]></style> |
| 31 </head> |
| 32 <body> |
| 33 <p>Test passes if there is a filled green square and <strong>no red</str
ong>.</p> |
| 34 |
| 35 <div id="reference-overlapped-red"></div> |
| 36 |
| 37 <div class="float test-overlapping-green"></div> |
| 38 <div class="inline-grid test-overlapping-green"></div> |
| 39 </body> |
| 40 </html> |
| OLD | NEW |