svg-explorer-extension icon indicating copy to clipboard operation
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

Open geekley opened this issue 6 years ago • 1 comments

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.

geekley avatar Jul 30 '18 22:07 geekley

This seems to be a Qt-Bug too (no Tiny-spec restriction) . Feel free to report it as i did :-)

ionum avatar Aug 02 '18 10:08 ionum