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

Unified Diff: LayoutTests/fast/multicol/hit-test-translate-z.html

Issue 799403006: [New Multicolumn] Make computeOffsetFromCompositedAncestor() flowthread-aware. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Simplify test. Created 6 years 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: LayoutTests/fast/multicol/hit-test-translate-z.html
diff --git a/LayoutTests/fast/multicol/hit-test-translate-z.html b/LayoutTests/fast/multicol/hit-test-translate-z.html
new file mode 100644
index 0000000000000000000000000000000000000000..6063044edad2495b83a4a05fd90a0f82bf460013
--- /dev/null
+++ b/LayoutTests/fast/multicol/hit-test-translate-z.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+
+<style>
+ body { margin:0; }
+ #target { transform:translateZ(0); background:yellow; }
+ #target:hover { background:green; }
+</style>
+
+<div id="mc" style="-webkit-columns:2; -webkit-column-gap:0; column-fill:auto; width:400px; height:200px;">
+ <div style="height:220px;"></div>
+ <div id="target" style="width:100px; height:100px;"></div>
+</div>
+
+<div id="result"></div>
+
+<script>
+ if (window.testRunner)
+ testRunner.dumpAsText();
+
+ var result = document.getElementById("result");
+ var hitElement = document.elementFromPoint(250, 50);
+ if (hitElement === document.getElementById("target"))
+ result.innerText = "PASS";
+ else
+ result.innerText = "FAIL: Hit " + hitElement;
+</script>

Powered by Google App Engine
This is Rietveld 408576698