Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #div { display:block; float: left; width: 50px; height: 50px; background-color: green; } | |
| 4 #float { width: 50px; height: 50px; background-color: green; float: left; } | |
| 5 </style> | |
| 6 <p>crbug.com/585064: Two contiguous anonymous blocks with inline content should be merged together. There should be a single green rectangle below.</p> | |
| 7 <div style="position: absolute; top: 50px; width: 500px;"> | |
|
mstensho (USE GERRIT)
2016/03/04 08:46:24
How about removing the out-of-flow positioning, se
| |
| 8 <div style="height: 50px; width: 50px;"></div> | |
| 9 <span>X</span> | |
| 10 <div id="float" data-offset-y=50></div> | |
| 11 <div id="div"></div> | |
| 12 <div id="float" data-offset-y=50></div> | |
|
mstensho (USE GERRIT)
2016/03/04 08:46:24
Duplicate ID #float.
| |
| 13 <span>X</span> | |
| 14 </div> | |
| 15 <script src="../../../resources/check-layout.js"></script> | |
| 16 <script> | |
| 17 document.body.offsetTop; | |
| 18 document.getElementById("div").style.float = 'none'; | |
|
mstensho (USE GERRIT)
2016/03/04 08:46:24
Why do you need to unfloat it dynamically first? S
| |
| 19 document.body.offsetTop; | |
| 20 document.getElementById("div").style.float = 'left'; | |
| 21 checkLayout("#float"); | |
| 22 </script> | |
| OLD | NEW |