SVG shadow cut off

前端 未结 3 446
北荒
北荒 2020-11-29 01:15

The SVG I\'m working with has a drop shadow via feGaussianBlur filter.

The shadow itself is displayed properly, but gets cut off on top and bottom edges.

Lik

3条回答
  •  庸人自扰
    2020-11-29 01:57

    If you're using it inside an HTML, you can simply use CSS properties to fix this issue.

    svg {
      overflow: visible !important;
    }
    

    I haven't checked other browsers, but chrome has the overflow: hidden by default on svg tags.

    A bit late, but I hope it's helpful.

提交回复
热议问题