Fixed Hit testing on Framesets when Frameset is transformed
[WebKit-https.git] / LayoutTests / fast / frames / frame-set-rotation-hit.html
1 <html>
2   <head>
3     <title>FrameSet Rotation 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             eventSender.scalePageBy(0.5, 0, 0);
11             var leftPanelWidth = window.innerWidth / 8;
12             eventSender.mouseMoveTo(window.innerWidth / 4, leftPanelWidth);
13             eventSender.mouseDown();
14             eventSender.mouseMoveTo(window.innerWidth / 4, 2 * leftPanelWidth);
15             eventSender.mouseUp();
16         }
17         window.onload = init;
18     </script>
19   </head>
20   <!--rotate the frameset and translate it to make sure the entire frameset is visible after scaling-->
21   <frameset style="background-color: red; -webkit-transform: rotate(90deg) translate(100px, 0px);" cols="25%,75%">
22     <frame src="data:text/html,<body bgcolor='green'></body>">
23     <frame src="data:text/html,<body bgcolor='green'></body>">
24   </frameset>
25 </html>