Re: svg element in a xul file

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: svg element in a xul file

Benjamin Smedberg
xiongh wrote:

> how can I insert a SVG element in a Xul file?
>
> for example: my file.xul it's :
>
> <?xml version="1.0"?>
> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
>
> <window
>         xmlns:html="http://www.w3.org/1999/xhtml"
>
> xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
> xmlns:svg="http://www.w3.org/2000/svg" >
>
>
> <button label="add" />
> <svg:svg>
> <svg:ellipse cx="100" cy="100" rx="70" ry="50" style="fill:red"/>
>
> </svg:svg>
>
>
> </window>

This has nothing to do with XBL. Moving discussion to npd.xul and npm.svg: I
think that you need to set a width/height on your svg:svg in order for it to
appear properly.

--BDS
_______________________________________________
Mozilla-svg mailing list
[hidden email]
http://mail.mozilla.org/listinfo/mozilla-svg