Fix hover area for divs with css transforms
[WebKit-https.git] / LayoutTests / transforms / 3d / hit-testing / hover-rotated-negative-z.html
1 <html>
2         <head>
3                 <title>Test - Bug #124647: Fix hover area for divs with css transforms</title>
4                 <style>
5                         #transformed {
6                                 -webkit-transform: translateY(50px) rotateX(20deg) rotateZ(10deg);
7                                 border: solid 5px rgba(128,128,128,0.5);
8                                 padding: 10px;
9                                 margin: 15px;
10                         }
11                         #transformed:hover {
12                                 box-shadow: 0px 0px 0px 10px rgba(0,128,0,0.5);
13                         }
14                         #parent {
15                                 outline: dotted 1px #888;
16                         }
17                         #transformed, #parent {
18                                 width: 600px;
19                                 height: 150px;
20                         }
21                 </style>
22
23                 <script src="resources/hit-test-utils.js"></script>
24                 <script>
25                         const hitTestData = [
26                                 { 'point': [70, 70], 'target' : 'transformed' },
27                                 { 'point': [630, 130], 'target' : 'transformed' },
28                                 { 'point': [40, 130], 'target' : 'transformed' },
29                                 { 'point': [620, 270], 'target' : 'transformed' }
30                         ];
31
32                         window.addEventListener('load', runTest, false);
33                   </script>
34         </head>
35         <body id="body">
36                 <div id="parent"><div id="transformed">transformed</div></div>
37
38                 <p>Test passes if the hover state of a transformed div is activated on the entire surface of the div.</p>
39
40                 <div id="results"></div>
41         </body>
42 </html>