Why is filter(drop-shadow) causing my SVG to disappear in Safari?

前端 未结 6 763
臣服心动
臣服心动 2020-12-06 06:04

I am developing an app using D3.js. I was sidetracked for a while, and recently came back to it. Today I found that, though it worked fine in the past, the SVG map in the ap

6条回答
  •  心在旅途
    2020-12-06 06:47

    Browsers calculate things differently and for some reason Safari hates you. Lol.

    However you should be using SVG Filters instead. They are much more reliable.

    SOURCE - w3schools

     
      
        
          
          
          
        
      
      
     
    

    Hope that helps!

提交回复
热议问题