Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!DOCTYPE html> | |
| 2 <style> | |
| 3 #floated-container { | |
| 4 float: left; | |
| 5 height: 100px; | |
| 6 overflow: auto; | |
| 7 } | |
| 8 #empty-block { | |
| 9 height: 200px; | |
| 10 } | |
| 11 </style> | |
| 12 <div> | |
| 13 <div id="floated-container"> | |
| 14 <div id="empty-block"></div> | |
| 15 </div> | |
| 16 </div> | |
| 17 <script> | |
| 18 if (window.testRunner) | |
| 19 testRunner.dumpAsText(); | |
| 20 | |
| 21 var result = document.createElement("p"); | |
| 22 document.body.appendChild(result); | |
| 23 var container = document.getElementById("floated-container"); | |
| 24 if (container.clientWidth == 0) | |
|
skobes
2016/05/17 00:18:40
Also, what should happen if #empty-block has width
| |
| 25 result.innerHTML = "PASS: container.clientWidth is zero."; | |
| 26 else | |
| 27 result.innerHTML = "FAIL: container.clientWidth is not zero."; | |
| 28 </script> | |
| OLD | NEW |