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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html

Issue 2339973002: Handle exclusive end offsets when translating from flow thread coordinates. (Closed)
Patch Set: Documentation Created 4 years, 3 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/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html b/third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html
new file mode 100644
index 0000000000000000000000000000000000000000..f89ac9b41bbcd556ca4ad18cbb38783400c16d2d
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html
@@ -0,0 +1,24 @@
+<!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-gap:10px; column-fill:auto; width:100px; height:320px;">
+ <div id="first" style="width:100px;"></div>
+ <div id="second" style="width:100px;"></div>
+ <div id="third" style="width:100px;"></div>
+</div>
+<script>
+ test(function() {
+ assert_equals(document.getElementById('first').offsetLeft, 0);
+ assert_equals(document.getElementById('first').offsetTop, 0);
+ }, "offsetLeft and offsetTop in vertical-rl at column boundaries, first element");
+
+ test(function() {
+ assert_equals(document.getElementById('second').offsetLeft, 0);
+ assert_equals(document.getElementById('second').offsetTop, 110);
+ }, "offsetLeft and offsetTop in vertical-rl at column boundaries, second element");
+
+ test(function() {
+ assert_equals(document.getElementById('third').offsetLeft, 0);
+ assert_equals(document.getElementById('third').offsetTop, 220);
+ }, "offsetLeft and offsetTop in vertical-rl at column boundaries, third element");
+</script>

Powered by Google App Engine
This is Rietveld 408576698