Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html |
| diff --git a/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html b/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..37ef082e2c006fd693123c3afa15ea0c49efb89e |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html |
| @@ -0,0 +1,28 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +#floated-container { |
| + float: left; |
| + height: 100px; |
| + overflow: auto; |
| +} |
| +#empty-block { |
| + height: 200px; |
| +} |
| +</style> |
| +<div> |
| + <div id="floated-container"> |
| + <div id="empty-block"></div> |
| + </div> |
| +</div> |
| +<script> |
| +if (window.testRunner) |
| + testRunner.dumpAsText(); |
| + |
| +var result = document.createElement("p"); |
| +document.body.appendChild(result); |
| +var container = document.getElementById("floated-container"); |
| +if (container.clientWidth == 0) |
|
skobes
2016/05/17 00:18:40
Also, what should happen if #empty-block has width
|
| + result.innerHTML = "PASS: container.clientWidth is zero."; |
| +else |
| + result.innerHTML = "FAIL: container.clientWidth is not zero."; |
| +</script> |