svg-explorer-extension
svg-explorer-extension copied to clipboard
width and height attributes are ignored on <svg> element, causing svg files which rely on that for clipping to display incorrectly
Simple example:
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="50"
>
<g id="bubble1">
<circle cx="50" cy="50" r="50" />
</g>
</svg>
This should render as half circle (like the browser does), but the thumbnail preview shows the whole drawing, ignoring the width and height attributes of the root <svg>
element.
When the svg file relies on these to clip the image, it is rendered incorrectly.
I think it should render considering those attributes, because the preview should reflect what the image will actually be (e.g. when seeing in a browser).
If the attributes are not present, then it should have the current behavior, considering the whole image.
This seems to be a Qt-Bug too (no Tiny-spec restriction) . Feel free to report it as i did :-)