Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / navigation_interception / navigation_from_image_onload.html
blob6d053f5271515df4509c2433c73a357395573655
1 <!DOCTYPE html>
2 <html>
3 <!--
5 Copyright 2015 The Chromium Authors. All rights reserved.
6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file.
9 -->
10 <head>
11 <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">
12 <style>
13 #first {
14 position: absolute;
15 width: 100px;
16 height: 100px;
17 top: 0px;
18 left: 0px;
19 background-color: green;
20 -webkit-transform: translate3d(0, 0, 0);
22 </style>
23 <script>
24 function pingAndOpenHello(e) {
25 var img = new Image();
26 img.onload = function () {
27 window.location = 'hello.html';
29 img.src = '../image_search/valid.png';
31 e.preventDefault();
34 function setup() {
35 first.ontouchstart = pingAndOpenHello;
37 </script>
38 </head>
39 <body onload='setup();'>
40 <div id='first'></div>
41 </body>
42 </html>