| 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: Minimum size of grid items</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/#min-size-auto" t
itle="6.5. Implied Minimum Size of Grid Items" /> |
| 7 <link rel="match" href="../../css21/reference/ref-filled-green-100px-squ
are.xht" /> |
| 8 <meta name="assert" content="Checks that minimum size for grid items is
the specified size regardless of the content size." /> |
| 9 <style type="text/css"><![CDATA[ |
| 10 #reference-overlapped-red { |
| 11 position: absolute; |
| 12 background-color: red; |
| 13 width: 100px; |
| 14 height: 100px; |
| 15 z-index: -1; |
| 16 } |
| 17 |
| 18 #constrained-grid { |
| 19 display: grid; |
| 20 grid: 10px / 10px; |
| 21 } |
| 22 |
| 23 #test-grid-item-overlapping-green { |
| 24 background-color: green; |
| 25 width: 100px; |
| 26 height: 100px; |
| 27 } |
| 28 |
| 29 #content-500x500 { |
| 30 width: 500px; |
| 31 height: 500px; |
| 32 } |
| 33 ]]></style> |
| 34 </head> |
| 35 <body> |
| 36 <p>Test passes if there is a filled green square and <strong>no red</str
ong>.</p> |
| 37 |
| 38 <div id="reference-overlapped-red"></div> |
| 39 <div id="constrained-grid"> |
| 40 <div id="test-grid-item-overlapping-green"> |
| 41 <div id="content-500x500"></div> |
| 42 </div> |
| 43 </div> |
| 44 |
| 45 </body> |
| 46 </html> |
| OLD | NEW |