diff --git a/cairosvg/surface.py b/cairosvg/surface.py index d3be94ee..0f0f00a4 100644 --- a/cairosvg/surface.py +++ b/cairosvg/surface.py @@ -386,6 +386,7 @@ def draw(self, node): self.stroke_and_fill = False self.draw(path) self.stroke_and_fill = True + path.tag = 'clipPath' self.context.restore() # TODO: fill rules are not handled by cairo for clips # if node.get('clip-rule') == 'evenodd':