All examples By author By category About

cool-Blue

svg path clipped by filter element

Problem with filter clipping

When a path element has instructions like this d="M28,46L28,23L77,23" to render two orthogonal lines, it works fine with the filter and the drop shadow rendered as expected, but, if the length of one of the lines is shorter than the corresponding dimension of the marker, a problem emerges: the path element, including the marker, start to get clipped by the filter.
I don't understand what's going on exactly, but it seems that the bounding box for the filter, which is a percentage of the path bounding box, collapses to zero height and this somehow clips the referencing path element. As soon as the path bounding box becomes zero, the problem disappears (at least it does in Chrome and Opera...).