| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE html> |
| 2 <html> | |
| 3 <style> | 2 <style> |
| 4 .item { | 3 .item { |
| 5 margin-bottom: 5px; | 4 margin-bottom: 5px; |
| 6 } | 5 } |
| 7 .ref { | 6 .ref { |
| 8 width: 40px; | 7 width: 40px; |
| 9 height:40px; | 8 height:40px; |
| 10 background-color: green; | 9 background-color: green; |
| 11 position: absolute; | 10 position: absolute; |
| 12 top: 10px; | 11 top: 10px; |
| 13 } | 12 } |
| 14 .test { | 13 .test { |
| 15 width: 40px; | 14 width: 40px; |
| 16 height:40px; | 15 height:40px; |
| 17 background-color: red; | 16 background-color: red; |
| 18 } | 17 } |
| 19 .container { | 18 .container { |
| 20 position: relative; | 19 position: relative; |
| 21 margin: 0px; | 20 margin: 0px; |
| 22 padding: 0px; | 21 padding: 0px; |
| 23 } | 22 } |
| 24 </style> | 23 </style> |
| 25 <body> | |
| 26 https://code.google.com/p/chromium/issues/detail?id=321295 | 24 https://code.google.com/p/chromium/issues/detail?id=321295 |
| 27 The top and bottom margins of a box collapse together only if they are the "top
and bottom margins of a box that does not establish a new block formatting cont
ext". | 25 The top and bottom margins of a box collapse together only if they are the "top
and bottom margins of a box that does not establish a new block formatting cont
ext". |
| 28 <br> | 26 <br> |
| 29 There should be no red below. | 27 There should be no red below. |
| 30 <div class="container"> | 28 <div class="container"> |
| 31 <div class="ref"></div> | 29 <div class="ref"></div> |
| 32 <div> | 30 <div> |
| 33 <div class="item" style="-webkit-columns: 10px 2;"></div> | 31 <div class="item" style="-webkit-columns: 10px 2;"></div> |
| 34 <div class="item" style="-webkit-columns: 10px 2;"></div> | 32 <div class="item" style="-webkit-columns: 10px 2;"></div> |
| 35 <div class="test"></div> | 33 <div class="test"></div> |
| 36 </div> | 34 </div> |
| 37 </div> | 35 </div> |
| 38 <div class="container"> | |
| 39 <div class="ref"></div> | |
| 40 <div> | |
| 41 <div class="item" style="-webkit-column-span: all;"></div> | |
| 42 <div class="item" style="-webkit-column-span: all;"></div> | |
| 43 <div class="test"></div> | |
| 44 </div> | |
| 45 </div> | |
| 46 </body> | |
| 47 </html> | |
| OLD | NEW |