Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / frames / frame-set-scaling-hit.html
blob2095ba541846317ae759e6ad48eb9b74e0726ba9
1 <html>
2 <head>
3 <title>Frame Scale Hit Test</title>
4 <style>
5 ::-webkit-scrollbar {
6 width: 0px;
7 height: 0px;
9 </style>
11 <script>
12 function init() {
13 if (!window.eventSender || !window.internals)
14 return;
15 // Scale the page and resize the frames to verify hit testing on the frameset
16 var leftPanelWidth = window.innerWidth / 8;
17 var panelHeight = window.innerHeight / 2;
18 internals.setPageScaleFactorLimits(0.5, 0.5);
19 internals.setPageScaleFactor(0.5);
20 eventSender.mouseMoveTo(leftPanelWidth, panelHeight / 2);
21 eventSender.mouseDown();
22 eventSender.mouseMoveTo(2 * leftPanelWidth, panelHeight / 2);
23 eventSender.mouseUp();
25 window.onload = init;
26 </script>
27 </head>
28 <frameset style="width: 4000px; height: 4000px; background-color: red; -webkit-transform-origin: 0% 0%;" 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>