clear-applies-to-000.xht (1087B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>CSS Test: Clear on floats after floats with display:none blocks between them</title> 5 <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch"/> 6 <link rel="reviewer" title="Elika J. Etemad" href="http://fantasai.inkedblade.net/contact" /> 7 <link rel="alternate" href="http://www.hixie.ch/tests/adhoc/css/box/float/clear/002.html" type="text/html"/> 8 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#display-prop" /> 9 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control" /> 10 <link rel="match" href="clear-applies-to-000-ref.xht" /> 11 12 <style type="text/css"> 13 .float { float: left; margin: 0; } 14 .clear { clear: left; display: none; background: red; } 15 </style> 16 </head> 17 <body> 18 <p>Test passes if the word PASS appears on a single line.</p> 19 <div class="float">PA</div> 20 <div class="clear">| FAIL |</div> 21 <div class="float">SS</div> 22 </body> 23 </html> 24 25