| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/x
html1/DTD/xhtml1-strict.dtd"><html xmlns="http://www.w3.org/1999/xhtml" lang="en
-US"><head> |
| 2 <title>CSS Test: Test for flow around floats</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 <link rel="help" href="http://www.w3.org/TR/CSS21/visuren.html#floats" /
> |
| 6 <link rel="match" href="floats-wrap-bfc-005-ref.xht"/> |
| 7 <meta name="assert" content="The border box of a table, a block-level re
placed element, or an element in the normal flow that establishes a new block fo
rmatting context (such as an element with 'overflow' other than 'visible') must
not overlap any floats in the same block formatting context as the element itsel
f." /> |
| 8 <meta name="flags" content="" /> |
| 9 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> |
| 10 <meta http-equiv="Content-Style-Type" content="text/css" /> |
| 11 <style type="text/css"> |
| 12 |
| 13 body { font-size: 10px; } |
| 14 |
| 15 table { margin: 0; border-spacing: 0; } |
| 16 td, th { padding: 0; vertical-align: top; } |
| 17 |
| 18 </style> |
| 19 </head> |
| 20 <body> |
| 21 |
| 22 <table width="300" style="background: aqua"><tbody><tr><td> |
| 23 <div style="float:left; background:blue; width: 200px; height: 20px"></div> |
| 24 <table width="50%" style="background: yellow" height="20"><tbody><tr><td>50%</
td></tr></tbody></table> |
| 25 </td></tr></tbody></table> |
| 26 |
| 27 <table width="300" style="background: aqua"><tbody><tr><td> |
| 28 <div style="float:right; background:blue; width: 200px; height: 20px"></div> |
| 29 <table width="50%" style="background: yellow" height="20"><tbody><tr><td>50%</
td></tr></tbody></table> |
| 30 </td></tr></tbody></table> |
| 31 |
| 32 <table width="300" style="background: aqua"><tbody><tr><td> |
| 33 <div style="float:left; background:blue; width: 200px; height: 20px"></div> |
| 34 <div style="overflow:hidden; background: yellow; width: 50%; height: 20px;">50
%</div> |
| 35 </td></tr></tbody></table> |
| 36 |
| 37 <table width="300" style="background: aqua"><tbody><tr><td> |
| 38 <div style="float:right; background:blue; width: 200px; height: 20px"></div> |
| 39 <div style="overflow:hidden; background: yellow; width: 50%; height: 20px;">50
%</div> |
| 40 </td></tr></tbody></table> |
| 41 |
| 42 |
| 43 |
| 44 </body></html> |
| OLD | NEW |