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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/out-of-flow/offset-properties.html

Issue 2250713002: Handle auto-positioned out-of-flow objects inside multicol containers correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: code review Created 4 years, 4 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/out-of-flow/offset-properties.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/out-of-flow/offset-properties.html b/third_party/WebKit/LayoutTests/fast/multicol/out-of-flow/offset-properties.html
new file mode 100644
index 0000000000000000000000000000000000000000..68feb6849c1a98dee8280d04f2779baa5ff5f845
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/out-of-flow/offset-properties.html
@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<script src="../../../resources/testharness.js"></script>
+<script src="../../../resources/testharnessreport.js"></script>
+<div style="position:relative; border:1px solid;">
+ <div style="columns:3; column-gap:0; column-fill:auto; margin:100px; width:300px; height:50px;">
+ <div style="height:70px;"></div>
+ <div id="elm" style="position:absolute;"></div>
+ </div>
+</div>
+<script>
+ test(function() {
+ assert_equals(document.getElementById('elm').offsetLeft, 200);
+ assert_equals(document.getElementById('elm').offsetTop, 120);
+ }, "auto-positioned abspos, containing block on the outside of the multicol.");
+</script>

Powered by Google App Engine
This is Rietveld 408576698