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

Unified Diff: LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z.html

Issue 79943002: Only not take zOffset into account during hit-testing when child layers are in the same 3d renderin… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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 | LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z.html
diff --git a/LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z.html b/LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z.html
new file mode 100644
index 0000000000000000000000000000000000000000..447a9bcb71b6c3a1803e6591e577dc95130020be
--- /dev/null
+++ b/LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z.html
@@ -0,0 +1,60 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <style>
+
+ #transformed {
+ -webkit-transform: translateY(50px) rotateX(20deg) rotateZ(10deg);
+ padding: 10px;
+ margin: 15px;
+ background-color: Yellow;
+ }
+ #transformed, #parent {
+ width: 600px;
+ height: 150px;
+ }
+ #child1 {
+ -webkit-transform: rotateX(45deg) rotateZ(45deg) translateZ(-500px) translateX(-300px) translateY(-180px);
+ height: 30px;
+ background-color: Lime;
+ }
+ #child2 {
+ -webkit-transform: translateZ(-500px) rotateX(-45deg) rotateZ(-45deg) translateX(50px) translateY(-130px);
+ height: 30px;
+ background-color: Cyan;
+ }
+ #description {
+ margin-top: 210px;
+ }
+
+ </style>
+
+ <script src="resources/hit-test-utils.js"></script>
+ <script>
+ const hitTestData = [
+ { 'point': [70, 70], 'target' : 'transformed' },
+ { 'point': [630, 130], 'target' : 'transformed' },
+ { 'point': [40, 130], 'target' : 'transformed' },
+ { 'point': [620, 270], 'target' : 'transformed' },
+ { 'point': [130, 100], 'target' : 'child1' },
+ { 'point': [200, 110], 'target' : 'child2' }
+ ];
+
+ window.addEventListener('load', runTest, false);
+ </script>
+ </head>
+ <body id="body">
+
+ <div id="parent">
+ <div id="transformed">transformed
+ <div id="child1">child 1</div>
+ <div id="nonTransformedChild">non transformed child</div>
+ <div id="child2">child 2</div>
+ </div>
+ </div>
+
+ <p id="description">Checks that hit testing is correct when a transformed element has childs with negative z-offset</p>
+
+ <div id="results"></div>
+ </body>
+</html>
« no previous file with comments | « no previous file | LayoutTests/transforms/3d/hit-testing/hover-rotated-with-children-negative-z-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698