3 <title>Test for WebKit bug 24735: Poor setDragImage support on Windows</title>
4 <style type="text/css">
7 -webkit-user-drag: element;
8 -webkit-user-select: none;
12 background-color: silver;
16 background-color: pink;
21 <script type="text/javascript">
22 function dragDivAndSeeImageDragged()
24 event.dataTransfer.setDragImage(document.getElementById("imgToUseAsImage"), event.pageX, event.pageY);
27 function dragImageAndSeeDivDragged()
29 event.dataTransfer.setDragImage(document.getElementById("divToUseAsImage"), event.pageX, event.pageY);
34 <h3>Test for <a href='https://bugs.webkit.org/show_bug.cgi?id=24735'>WebKit bug 24735</a>: Poor setDragImage support on Windows</h3>
37 <p>When you drag the first div, the image under the cursor should be of the second image. </p>
38 <p>When you drag the first image, the image under the cursor should be of the second div. </p>
43 <div class="draggable" ondragstart="dragDivAndSeeImageDragged()"> Drag me, I am a div! (first div)</div>
\r
46 <img src="resources/webkit-background.png" class="draggable" ondragstart="dragImageAndSeeDivDragged()" />
\r
49 <img src="resources/drag-image.png" id="imgToUseAsImage" />
\r
52 <div id="divToUseAsImage"> When a drag is started on the image, this is the div that is used as the drag image! (second div)</div>
\r