Drag sprite for svg elements on IE and Edge
NickName:Ahmed Kotb Ask DateTime:2016-09-02T08:57:32

Drag sprite for svg elements on IE and Edge

Is there a way to show the drag sprite for svg elements in IE/Edge ?

Example:

This one can be dragged without problems

<img draggable="true" src="file.jpg" />

This one doesn't show the drag sprite

<img draggable="true" src="file.svg" />

Demo: http://codepen.io/akotb/pen/WGNOXv

Also it doesn't work if the div you are dragging has a direct (or indirect) child that use svg symbols

<div draggable="true"> <svg><use xlink:href="#circle" /></svg></div>

updated the demo with that example as well

Copyright Notice:Content Author:「Ahmed Kotb」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/39282876/drag-sprite-for-svg-elements-on-ie-and-edge

More about “Drag sprite for svg elements on IE and Edge” related questions

Drag sprite for svg elements on IE and Edge

Is there a way to show the drag sprite for svg elements in IE/Edge ? Example: This one can be dragged without problems &lt;img draggable="true" src="file.jpg" /&gt; This one doesn't show

Show Detail

SVG transform property not taking acount in IE Edge

The JSFiddle below is an SVG drawing, with 2 brown rectangle &lt;rect&gt; spaced each other and that have both a group &lt;g&gt; that have a class class="group" which applies a transformation (rota...

Show Detail

jqgrid - Drag columns past edge of visible columns in IE

I have a jqgrid with a large number of columns, so not all of them are visible on the screen at once. If I want to drag the first column all the way to the end in IE, I have to drag to the edge, dr...

Show Detail

Prevent svg <use> elements being re-rendered when properties of other elements change in IE/Edge

I'm trying to use svg 'use' elements as icons in a div that is a part of a div displayed as table. It will be much faster when those 'use' elements are loaded for the first time than creating an 's...

Show Detail

Edge/IE SVG CSS hover issue with viewBox

I'm having trouble with SVG elements unexpectedly disappearing when applying a hover style in IE and Edge. This appears to be caused by using a viewBox with a relatively large offset. In Chrome and

Show Detail

Animated SVG - Gif fallback for IE / Edge

I am using an animated SVG which works great in all browsers I have tried apart from IE / Edge. &lt;img src="img/loaderk.svg" alt="Loading"&gt; Is there any sort of fallback I can do to display an

Show Detail

Inline Svg in css background property doesn't work on Edge properly

I have the following html file &lt;body&gt; &lt;p&gt;&lt;/p&gt; &lt;/body&gt; and I would like to add :before with svg background like this p:before { content: ''

Show Detail

How to use SVG sprite as CSS pseudo elements?

I'm trying to use SVG icons (located in a SVG sprite) as CSS pseudo elements. They're working well in HTML, but when I import them in my CSS nothing is appearing. Where could be the problem? Workin...

Show Detail

svg clip-path circle fails when using svg-sprite and multiple instances

I have this head-scratcher that I've been beating for the past few weeks. Hard to determine where the issue is originating, because it has specific conditions which create it. Here is a plnkr demo...

Show Detail

CSS SVG sprite wrong on IE11 and Opera

I will like to get help please with an issue I got in both IE11 and Opera with CSS SVG sprite. For some reason both of these browsers are showing the SVG in a very wrong way and some times even not...

Show Detail