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

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

Issue 2340213003: Add PageBoundaryRule parameter to columnSetAtBlockOffset(). (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-at-boundaries.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-at-boundaries.html b/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-at-boundaries.html
index e9205232e289c280b9361fbb7dbf753595698603..62bfaaf788d9ec7e5ae0a3491e403262307bec09 100644
--- a/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-at-boundaries.html
+++ b/third_party/WebKit/LayoutTests/fast/multicol/vertical-lr/offset-top-and-left-at-boundaries.html
@@ -1,11 +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-gap:10px; column-fill:auto; width:100px; height:320px;">
+<div style="position:relative; writing-mode:vertical-lr; columns:3; column-gap:10px; height:320px;">
<div id="first" style="width:100px;"></div>
<div id="second" style="width:100px;"></div>
<div id="third" style="width:100px;"></div>
+ <div id="spanner" style="column-span:all; width:50px;"></div>
+ <div id="fifth" style="width:100px;"></div>
+ <div id="sixth" style="width:100px;"></div>
+ <div id="seventh" style="width:100px;"></div>
</div>
+
<script>
test(function() {
assert_equals(document.getElementById('first').offsetLeft, 0);
@@ -21,4 +26,24 @@
assert_equals(document.getElementById('third').offsetLeft, 0);
assert_equals(document.getElementById('third').offsetTop, 220);
}, "offsetLeft and offsetTop in vertical-lr at column boundaries, third element");
+
+ test(function() {
+ assert_equals(document.getElementById('spanner').offsetLeft, 100);
+ assert_equals(document.getElementById('spanner').offsetTop, 0);
+ }, "offsetLeft and offsetTop in vertical-lr, spanner");
+
+ test(function() {
+ assert_equals(document.getElementById('fifth').offsetLeft, 150);
+ assert_equals(document.getElementById('fifth').offsetTop, 0);
+ }, "offsetLeft and offsetTop in vertical-lr at column boundaries, fifth element");
+
+ test(function() {
+ assert_equals(document.getElementById('sixth').offsetLeft, 150);
+ assert_equals(document.getElementById('sixth').offsetTop, 110);
+ }, "offsetLeft and offsetTop in vertical-lr at column boundaries, sixth element");
+
+ test(function() {
+ assert_equals(document.getElementById('seventh').offsetLeft, 150);
+ assert_equals(document.getElementById('seventh').offsetTop, 220);
+ }, "offsetLeft and offsetTop in vertical-lr at column boundaries, seventh element");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/multicol/vertical-rl/offset-top-and-left-at-boundaries.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698