Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(746)

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: Restore list box height calculation, fix scrollbar width factor Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
+ result.innerHTML = "PASS: container.clientWidth is zero.";
+else
+ result.innerHTML = "FAIL: container.clientWidth is not zero.";
+</script>

Powered by Google App Engine
This is Rietveld 408576698