Overflow: Visible on SVG

后端 未结 2 877
抹茶落季
抹茶落季 2020-12-09 08:25

Is it possible set overflow: visible on elements?

This simple example on jsfiddle breaks in every browser I have access to, (so

2条回答
  •  情书的邮戳
    2020-12-09 08:59

    overflow: visible  
    box-shadow : 0px -0px 10000px transparent /*trick for chrome*/
    

    Adding a huge box-shadow to the SVG , or adding the SVG in a DIV with the huge shadow solve it. In Chrome I noticed that the overflow is being clipped to the box-shadow limit.

提交回复
热议问题