Index: third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-nested.html |
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-nested.html b/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-nested.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..320a78397b5a1b007b352e168c882c2931926fb4 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-nested.html |
@@ -0,0 +1,16 @@ |
+<!DOCTYPE html> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+<div style="position:relative; writing-mode:vertical-lr; columns:3; column-fill:auto; column-gap:10px; width:100px; height:350px;"> |
+ <div style="columns:2; column-fill:auto; column-gap:10px; width:200px;"> |
+ <div style="width:250px;"></div> |
+ <div id="in-second-row" style="width:20px;"></div> |
+ </div> |
+</div> |
+ |
+<script> |
+ test(function() { |
+ assert_equals(document.getElementById('in-second-row').offsetLeft, 50); |
+ assert_equals(document.getElementById('in-second-row').offsetTop, 120); |
+ }, "offsetLeft and offsetTop in vertical-lr in nested multicol"); |
+</script> |