Index: third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html |
diff --git a/third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html b/third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..633a849479c37bfc28714746c9861ee7d89b1728 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/block/scrollbar-wider-than-border-box.html |
@@ -0,0 +1,13 @@ |
+<!DOCTYPE html> |
+<div style="position:relative;"> |
+ <div style="overflow:scroll; width:1px;"> |
+ <div id="inner" style="float:right; width:20px; height:100px;"></div> |
+ </div> |
+</div> |
+<script src="../../resources/testharness.js"></script> |
+<script src="../../resources/testharnessreport.js"></script> |
+<script> |
+ test(() => { |
+ assert_equals(inner.offsetLeft, -20); |
+ }, "Right-aligned float in zero-width block"); |
+</script> |