floats-114.xht (1084B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: CSS Floats: Generated Content</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/014.xml" type="application/xhtml+xml"/> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/014.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /> 9 <link rel="match" href="floats-114-ref.xht" /> 10 11 <style type="text/css"> 12 .test { border: solid navy; padding: 0.5em; } 13 .a:before { float: none; content: 'PA'; width: 5em; } 14 .b:before { float: left; content: 'PA'; } 15 .c:after { float: left; content: 'PA'; height: 5em } 16 </style> 17 </head> 18 <body> 19 <p> The following three lines should be identical and should read 'PASS' as one unbroken word:</p> 20 <p class="test a">SS</p> 21 <p class="test b">SS</p> 22 <p class="test c">SS</p> 23 </body> 24 </html>