grid-inline-float-001.html (1252B)
1 <!DOCTYPE html> 2 <meta charset="utf-8"> 3 <title>CSS Grid Layout Test: 'float' has no effect on grid items within an inline grid</title> 4 <link rel="author" title="Manuel Rego Casasnovas" href="mailto:rego@igalia.com"> 5 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/"> <!-- 2015-01-03 --> 6 <link rel="help" href="http://www.w3.org/TR/css-grid-1/#grid-containers" title="3.1 Establishing Grid Containers"> 7 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#float-position" title="9.5.1 Positioning the float"> 8 <link rel="match" href="../../reference/ref-filled-green-100px-square.xht"> 9 <style> 10 #reference-overlapped-red { 11 position: absolute; 12 background-color: red; 13 width: 100px; 14 height: 100px; 15 z-index: -1; 16 } 17 18 .inline-grid { 19 display: inline-grid; 20 } 21 22 .test-overlapping-green { 23 background-color: green; 24 width: 100px; 25 height: 50px; 26 } 27 28 .float-left { 29 float: left; 30 } 31 </style> 32 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 33 34 <div id="reference-overlapped-red"></div> 35 36 <div class="inline-grid"> 37 <div class="test-overlapping-green float-left"></div> 38 <div class="test-overlapping-green"></div> 39 </div>