SVG tag required for Firefox but appears to break CSS mask in Chrome

后端 未结 1 1340
花落未央
花落未央 2020-12-21 04:05

I\'m trying to mask content with an external SVG image like so:

#homepage-banner .desktop-slider.masked {
  -webkit-mask:url(news-panel-mask.svg) left top no         


        
1条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-21 04:46

    As linked in my comment above, the solution is to use separate paths for each browser in the .svg file:

    
    
      
      
    
      
      
        
          
        
      
    
    
    

    0 讨论(0)
提交回复
热议问题