[BZ#734365] overflow not hidden when rendering symbol or inner svg elements
Submitted by Giuseppe Bilotta
Link to original bug (#734365)
Description
Created attachment 282709 Symbol use / inner svg element clipping example
According to the SVG specification1, the default value of the
overflow
property of the elements that define new viewports (such assymbol
elements onuse
, or innersvg
elements) ishidden
. The contents of these elements should therefore be clipped to the new viewport they defined (by default).The example file places side by side a
use
of asymbol
and an equivalent nestedg > svg
pair. In both cases, the path is fully visible and perfectly symmetric when displayed through librsvg, even though the left/top part of the path is partially outside of the symbol/svg viewport and should therefore be clipped (compare with the rendering in Firefox and Chromium).Attachment 282709, "Symbol use / inner svg element clipping example":