abspos-inline-003.xht (1454B)
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: positioning at top left</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/003.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; top: 0; left: 0; } 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 The test has <span class="test"><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 27 <p>There should be no red after resizing viewport.</p> 28 29 <!-- the exception mentioned in tests 001 and 002 DOES NOT APPLY to this test. --> 30 31 </body> 32 </html>