Re: SVG in HTML

From: Dominic Lachowicz <domlachowicz_at_gmail.com>
Date: Tue Jul 14 2009 - 13:41:21 CEST

We are directly embedding MathML inside of HTML. Why are we trying to
shove SVG into an <object> tag? XHTML supports embedded SVGs just
fine.

On Tue, Jul 14, 2009 at 6:07 AM, J.M. Maurer<uwog@uwog.net> wrote:
> I'm trying to export SVG to HTML, but this is a bit annoying: you can't
> set the size of the SVG in HTML. This is because the SVG has to be
> embedded in an <object> tag. If you put a size on the object tag, the
> object itself is resized, and the SVG in it is not. Scrollbars are added
> so you can view the entire SVG. See the attached example in Firefox.
>
> Solutions:
>
> 1. Use javascript to resize the svg, like here:
>
>  http://www.unet.univie.ac.at/~a9900479/svg4tom/svg4tom1.html
>
> NOTE: this involves adding js to *BOTH* the HTML and SVG data!
>
> 2. Leave it as it, ie. with the scrollbars
>
> 3. Export a PNG representation of the SVG, which does have the right
> size.
>
> Comments?
>  Marc
>

-- 
"I like to pay taxes. With them, I buy civilization." --  Oliver Wendell Holmes
Received on Tue Jul 14 13:42:12 2009

This archive was generated by hypermail 2.1.8 : Tue Jul 14 2009 - 13:42:12 CEST