floats-wrap-top-below-001r-notref.xht (812B)
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head> 2 <title>CSS Test: Test for wrapping around floats whose top is below the top of what must wrap around them</title> 3 <link rel="author" title="L. David Baron" href="https://dbaron.org/" /> 4 <link rel="author" title="Mozilla Corporation" href="http://mozilla.com/" /> 5 <style type="text/css"> 6 7 body { width: 400px; border: medium solid; text-align: right; } 8 div { float: right; clear: right; } 9 span { display: inline-block; vertical-align: top; width: 200px; height: 50px; background: aqua; } 10 11 </style> 12 </head> 13 <body> 14 15 <div style="width: 50px; height: 50px;"></div> 16 <div style="width: 50px; height: 100px;"></div> 17 <span></span> 18 <span></span> 19 20 21 22 </body></html>