| 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 <style> | |
| 5 .container { font: 12px Ahem; color: red; width: 100px; -webkit-line-box
-contain: block; line-box-contain: block; position: relative; } | |
| 6 div { background: white; } | |
| 7 .reference { position: absolute; left: 10px; width: 40px; height: 50px;
background: black; } | |
| 8 .tallspan { display: inline-block; width: 20px; height: 50px; background
: red; vertical-align: top;} | |
| 9 .shortspan { display: inline-block; width: 20px; height: 20px; backgroun
d: red; vertical-align: top;} | |
| 10 </style> | |
| 11 </head> | |
| 12 <body> | |
| 13 <!-- Ensure lineboxes respect line-box-contain when avoiding floats. In this cas
e the first inline block avoids the first float as | |
| 14 its the start of the line, but the second taller inline block has no effect
even though it overlaps the second float. --> | |
| 15 There should be no red below. | |
| 16 <div class="container"> | |
| 17 <div style="float: left; width: 10px; height: 25px; 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 <span class="shortspan"></span><span class="tallspan"></span> | |
| 22 </div> | |
| 23 | |
| 24 | |
| 25 </body></html> | |
| OLD | NEW |