SVG: adding shadow filter makes straight line invisible [duplicate]
问题 This question already has answers here : Adding feDropShadow to a vertical line in SVG makes it disappear (2 answers) Closed 2 years ago . I'm trying to add a shadow to my SVG. It works well with all 2D objects, but when same filter is applied to a straight line (either <line> or <path> ), the line becomes invisible, and no shadow is added. Demo: https://jsfiddle.net/ccj0Ldfh/1/ 回答1: Per the last paragraph here Keyword objectBoundingBox should not be used when the geometry of the applicable