| OLD | NEW |
| (Empty) |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/st
rict.dtd"> | |
| 2 <html> | |
| 3 <head> | |
| 4 <title>CSS Test: Test for wrapping around floats which are overlapped by the
element that must avoid them</title> | |
| 5 <link rel="author" title="WebKit" href="http://webkit.org/"> | |
| 6 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats"> | |
| 7 <style type="text/css"> | |
| 8 .container { font: 12px Ahem; color: red; width: 100px; height: 100px; b
ackground: lime; -webkit-line-box-contain: inline; line-box-contain: inline; pos
ition: relative; } | |
| 9 div { background: white; } | |
| 10 .reference { position: absolute; width: 100px; height: 100px; background
: black; } | |
| 11 </style> | |
| 12 </head> | |
| 13 <body> | |
| 14 <!-- Ensure lineboxes respect line-box-contain when avoiding floats. --> | |
| 15 There should be no red below. | |
| 16 <div class="container"> | |
| 17 <div style="float: left; width: 10px; height: 10px; background: white"></di
v> | |
| 18 <div style="float: left; clear:left; width: 40px; height: 50px; background:
white"></div> | |
| 19 <!-- This should cover the text below as the linebox will offset to avoid th
e first float but not the second. --> | |
| 20 <div class="reference"></div> | |
| 21 XXXXXXX XXXX XXXX XXXX | |
| 22 </div> | |
| 23 | |
| 24 | |
| 25 </body></html> | |
| OLD | NEW |