Chromium Code Reviews

Unified Diff: third_party/WebKit/LayoutTests/scrollbars/auto-scrollbar-zero-width-block.html

Issue 1980103002: Include auto vertical scrollbar in intrinsicScrollbarLogicalWidth. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Added test Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
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>

Powered by Google App Engine