Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / frame-set-rotation-hit.html
blobe129f17f6f511b81373f6ce733e8e1cdca9d6aa7
1 <html>
2 <head>
3 <title>FrameSet Rotation Hit Test</title>
4 <style>
5 ::-webkit-scrollbar {
6 width: 0px;
7 height: 0px;
9 </style>
10 <script>
11 function init() {
12 if (!window.eventSender || !window.internals)
13 return;
14 // Scale the page and resize the frames to verify hit testing on the frameset
15 var leftPanelWidth = window.innerWidth / 8;
16 var panelHeight = window.innerHeight / 2;
17 internals.setPageScaleFactorLimits(0.5, 0.5);
18 internals.setPageScaleFactor(0.5);
19 eventSender.mouseMoveTo(panelHeight / 2, leftPanelWidth);
20 eventSender.mouseDown();
21 eventSender.mouseMoveTo(panelHeight / 2, 2 * leftPanelWidth);
22 eventSender.mouseUp();
24 window.onload = init;
25 </script>
26 </head>
27 <!--rotate the frameset and translate it to make sure the entire frameset is visible after scaling-->
28 <frameset style="width: 4000px; height: 4000px; background-color: red; transform: rotate(90deg) translate(100px, 0px);" cols="25%,75%">
29 <frame src="data:text/html,<body bgcolor='green'></body>">
30 <frame src="data:text/html,<body bgcolor='green'></body>">
31 </frameset>
32 </html>