Index: third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-nested.html |
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-nested.html b/third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-nested.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..0e3647a3d17ea3f0c30df678a1c19ca8bb7ebf99 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/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-rl; 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, 30); |
+ assert_equals(document.getElementById('in-second-row').offsetTop, 120); |
+ }, "offsetLeft and offsetTop in vertical-rl in nested multicol"); |
+</script> |