abspos-inline-002.xht (1432B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html lang="en" xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Absolutely positioned boxes in inlines: 'auto' with 'relative'</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Gérard Talbot" href="http://www.gtalbot.org/BrowserBugsSection/css21testsuite/" /> <!-- 2012-09-14 --> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/absolute/inline/002.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#comp-abspos" /> 9 10 <meta name="flags" content="interact" /> 11 12 <style type="text/css"> 13 p { font: 1em monospace; } 14 .filler { color: silver; } 15 .absolute { color: white; background: green; position: absolute; } 16 .fail { color: yellow; background: red; } 17 .test { position: relative; } 18 </style> 19 </head> 20 <body> 21 <p> 22 <span class="filler"> This is filler text. This is filler text. This is filler text. </span> 23 <span class="test"> The test has <span class="absolute">PASSED</span><span class="fail">FAILED</span>.</span> 24 <span class="filler"> This is filler text. This is filler text. This is filler text. </span> 25 </p> 26 <p>(Exception: when the word FAILED is at the beginning of a 27 line, the word PASSED may still be at the end of the previous 28 line.)</p> 29 </body> 30 </html>