Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Safari Mobile: pointer-events CSS does not work for SVG content

Tags:

css

safari

svg

ipad

I am having trouble getting pointer-events CSS to work properly when applied to an SVG element. It does not behave as expected when using the iPad.

I've created a small demo of the problem here:

http://jsfiddle.net/nPFu2/

If anyone has run into this before or has any insight to this, I am super appreciative for the help!

like image 550
user1243516 Avatar asked Oct 22 '25 03:10

user1243516


1 Answers

Safari still appears to have this problem with svg pointer events.

They work fine in Webkit and Chrome, so I guess it's just a Safari bug that they haven't yet fixed.

... After some more research, I figured out the confusion. Safari does currently support pointer events on svg elements, but this does not include the svg tag itself.

like image 118
protometa Avatar answered Oct 23 '25 20:10

protometa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!