float-no-content-beside-001.html (822B)
1 <!DOCTYPE html> 2 <meta charset=utf-8> 3 <title>CSS Floats — narrow containing block</title> 4 <meta name=assert content="If a shortened line box is too small to contain any content, then the line box is shifted downward"> 5 <link rel=help href="https://www.w3.org/TR/CSS2/visuren.html#floats"> 6 <link rel=match href="float-no-content-beside-001-ref.html"> 7 <link rel=author title="Jonathan Kew" href="jkew@mozilla.com"> 8 <style> 9 p { width: 10em; border: solid aqua; } 10 span { float: left; width: 5em; height: 5em; border: solid blue; } 11 </style> 12 13 <div>Test passes if all three examples render the same:</div> 14 15 <p><span></span>Supercalifragilisticexpialidocious</p> 16 17 <br style="clear:both"> 18 19 <p><span></span> Supercalifragilisticexpialidocious</p> 20 21 <br style="clear:both"> 22 23 <p><span></span><br>Supercalifragilisticexpialidocious</p>