Fixed Hit testing on Framesets when Frameset is transformed
[WebKit-https.git] / LayoutTests / fast / frames / frame-set-scaling-hit.html
1 <html>
2   <head>
3     <title>Frame Scale Hit Test</title>
4
5     <script>
6         function init() {
7             if (!window.eventSender)
8                 return;
9             // Scale the page and resize the frames to verify hit testing on the frameset
10             var leftPanelWidth = window.innerWidth / 8;
11             eventSender.scalePageBy(0.5, 0, 0);
12             eventSender.mouseMoveTo(leftPanelWidth, window.innerHeight / 4);
13             eventSender.mouseDown();
14             eventSender.mouseMoveTo(2 * leftPanelWidth, window.innerHeight / 4);
15             eventSender.mouseUp();
16         }
17         window.onload = init;
18     </script>
19   </head>
20   <frameset style="background-color: red; -webkit-transform-origin: 0% 0%;" cols="25%,75%">
21     <frame src="data:text/html,<body bgcolor='green'></body>">
22     <frame src="data:text/html,<body bgcolor='green'></body>">
23   </frameset>
24 </html>