clear-applies-to-008

Clear on inline elements

WeasyPrint

This browser

Assertion
The 'clear' property does not apply to elements with a display of 'inline'.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3  <head>
 4   <title>CSS Test: Clear on inline elements</title>
 5   <link rel="author" title="Ian Hickson" href="mailto:ian@hixie.ch">
 6   <link rel="author" 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/001-demo.html" type="text/html">
 8   <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#flow-control">
 9   <meta name="assert" content="The 'clear' property does not apply to elements with a display of 'inline'.">
10   <style type="text/css">
11    .float { float: left; height: 10em; }
12    .clear { clear: left; }
13   </style>
14  </head>
15  <body>
16   <p>Test passes if the word PASS appears on a single line below.</p>
17   <div><div class="float">P</div><span class="clear">A</span>SS</div>
18  </body>
19 </html>