position-absolute-in-inline-003.html (808B)
1 <!DOCTYPE html> 2 <title> 3 Out-of-flow positioned element with inline containing block. 4 </title> 5 <link rel="help" href="https://www.w3.org/TR/css-position-3/#def-cb"> 6 <link rel="match" href="../reference/ref-filled-green-100px-square.xht"> 7 <link rel="stylesheet" type="text/css" href="/fonts/ahem.css" /> 8 <style> 9 #container { 10 font: 20px/1 Ahem; 11 color: white; 12 } 13 .abs { 14 position: absolute; 15 background-color: green; 16 height: 100px; 17 width: 100px; 18 top: -60px; 19 } 20 </style> 21 <p>Test passes if there is a filled green square and <strong>no red</strong>.</p> 22 <div id="container" style="height: 100px; width: 100px; background-color: red;"> 23 <div style="height: 60px;"></div> 24 B 25 <span style="position: relative;"> 26 <div></div> 27 AA 28 <div class="abs"></div> 29 </span> 30 </div>