https://bugs.documentfoundation.org/show_bug.cgi?id=97538

--- Comment #5 from Yousuf (Jay) Philips <philip...@hotmail.com> ---
(In reply to Regina Henschel from comment #4)
> The example has neither width/height attribute nor a viewBox attribute on
> the outermost svg element to define the size of the canvas. Therefore the
> content is taken to define the size of the canvas.

Yes the problem is with the missing viewBox attribute.

> I agree, that the result would be nicer, if we expand the canvas, so that
> the complete object is visible. We can add the amount given by left/top of
> the content. A negative value there would then result in the same kind of
> clipping, you see in the browser.

I dont see nay clipping in any browser i use (Opera, Firefox, Chromium)

> I have attached a patch, so that you can already test my proposal. Today it
> is to late in the night for me to work with Gerrit.

Pushed: https://gerrit.libreoffice.org/22267

We also have instances when the viewBox is cropping the image, when it
shouldnt, like the below SVGs, so what should be done then?

https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/mail.svg
https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/msft.svg

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to