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

Unified Diff: third_party/WebKit/LayoutTests/fast/multicol/client-rects-empty-element-boundary.html

Issue 2360913004: Support for multiple block fragments in getClientRects(). (Closed)
Patch Set: fast/overflow/overflow-height-float-not-removed-crash3.html crashed because saturated LayoutUnits caused zero height 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/client-rects-empty-element-boundary.html
diff --git a/third_party/WebKit/LayoutTests/fast/multicol/client-rects-empty-element-boundary.html b/third_party/WebKit/LayoutTests/fast/multicol/client-rects-empty-element-boundary.html
new file mode 100644
index 0000000000000000000000000000000000000000..3ff4973f2951333dec0e70ee705db03987ca441e
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/fast/multicol/client-rects-empty-element-boundary.html
@@ -0,0 +1,19 @@
+<!DOCTYPE html>
+<script src="../../resources/testharness.js"></script>
+<script src="../../resources/testharnessreport.js"></script>
+<style>body { margin:0; }</style>
+<div style="columns:4; column-gap:10px; column-fill:auto; width:430px; height:100px;">
+ <div style="height:100px;"></div>
+ <div id="empty" style="position:relative;"></div>
+ <div style="height:100px;"></div>
+</div>
+<script>
+ test(function() {
+ var rects = document.getElementById("empty").getClientRects();
+ assert_equals(rects.length, 1);
+ assert_equals(rects[0].left, 110);
+ assert_equals(rects[0].top, 0);
+ assert_equals(rects[0].right, 210);
+ assert_equals(rects[0].bottom, 0);
+ }, "Zero-height element at column boundary");
+</script>

Powered by Google App Engine
This is Rietveld 408576698