Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / resources / drag-in-frames-left.html
blob631237b888f8543fc0b087f48324c00505d41e47
1 <html>
2 <head>
3 <title>Left</title>
4 </head>
6 <body style="margin:0; padding:0">
8 <script>
9 function log(message) {
10 console_doc = parent.frames[2].document;
11 var item = console_doc.createElement("li");
12 item.appendChild(console_doc.createTextNode(message));
13 console_doc.getElementById('console_messages').appendChild(item);
15 </script>
17 <div style="width:150; height:75; text-align:center;">
18 <a id="elementToDrag"
19 href="#"
20 style="position: relative; top: 50"
21 ondrag="log('ondrag src')"
22 ondragstart="log('ondragstart src')"
23 ondragend="log('ondragend src')"
24 ondragenter="log('ondragenter src')"
25 ondragover="log('ondragover src')"
26 ondragleave="log('ondragleave src')"
27 ondrop="log('ondrop src')">
28 Drag me
29 </a>
30 </div>
32 <div id="dragTarget"
33 style="width:150; height:150; background-color:lightgreen; text-align:center;"
34 ondrag="alert('ondrag left target')"
35 ondragstart="alert('ondragstart left target')"
36 ondragend="alert('ondragend left target')"
37 ondragenter="log('ondragenter left target'); return false;"
38 ondragover="log('ondragover left target'); return false;"
39 ondragleave="log('ondragleave left target')"
40 ondrop="log('ondrop left target')">
41 <span style="position: relative; top: 50">Here</span>
42 </div>
44 <p><a href="http://bugs.webkit.org/show_bug.cgi?id=7323" target="_top">Bug 7323</a>:
45 REGRESSION (10.4.4): ondrag* events don't fire on page in a frame</p>
46 <p>This test works only in automatic mode, but you can also try dragging manually to compare the results with other browsers.</p>
48 </body>
49 </html>