| 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-003-right-table-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 table { margin: 0; border-spacing: 0; } |
| 14 td, th { padding: 0; } |
| 15 |
| 16 span { display: inline-block; vertical-align: bottom; } |
| 17 |
| 18 </style> |
| 19 </head> |
| 20 <body> |
| 21 |
| 22 <table width="300" style="background: aqua"><tbody><tr><td> |
| 23 |
| 24 <div style="float:right; background:blue; width: 100px; height: 100px"></div> |
| 25 |
| 26 <table style="background: yellow"><tbody><tr><td> |
| 27 <span style="width: 250px; height: 50px; background: purple"></span> |
| 28 </td></tr></tbody></table> |
| 29 |
| 30 </td></tr></tbody></table> |
| 31 |
| 32 |
| 33 |
| 34 </body></html> |
| OLD | NEW |