NEW 222105
Setting the dragImage to an SVG image causes webkit to automatically abort the drag event
https://bugs.webkit.org/show_bug.cgi?id=222105
Summary Setting the dragImage to an SVG image causes webkit to automatically abort th...
sergen_nurel
Reported 2021-02-18 06:55:22 PST
During the dragstart event, setting the dragImage to an SVG image causes webkit to automatically abort the drag event. To reproduce: <div id="thing" draggable="true">DRAG ME</div> function onDragStart(event){ var testfile = document.createElement("img"); testfile.src = "https://assets.codepen.io/3/kiwi.svg"; event.dataTransfer.setDragImage(testfile, 5, 9); } var theThing = document.getElementById('thing'); theThing.addEventListener('dragstart', onDragStart, false);
Attachments
Radar WebKit Bug Importer
Comment 1 2021-02-25 06:56:12 PST
Note You need to log in before you can comment on or make changes to this bug.