In the last paragraph here
The BoundingBox keyword object should not be used if the geometry of the applicable element does not have a width or height, for example, in the case of a horizontal or vertical line, even if the line has the actual thickness when viewed due to the absence of a non-zero one since the stroke width is ignored for bounding box calculations. If the geometry of the applicable element does not have a width or height, and the BoundingBox is specified, then this effect (for example, a gradient or filter) will be ignored.
source
share