Re: svg element in a xul file
T Rowley <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.xml |
|---|---|
| Organization | Another Netscape Collabra Server User |
| Message-ID | <[email protected]> |
On 11/7/05 10:40 AM, xiongh wrote: > how can I insert a SVG element in a Xul file? > > [munch] > > but i don't visualize anything!!!! In this case the problem was that you didn't give any size for <svg:svg>, so it wasn't sizing properly. Adding a few attributes gets it displaying: <?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?> <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:html="http://www.w3.org/1999/xhtml" xmlns:svg="http://www.w3.org/2000/svg"> <button label="add" /> <svg:svg width="100" height="100" viewBox="0 0 200 200"> <svg:ellipse cx="100" cy="100" rx="70" ry="50" fill="red"/> </svg:svg> </window>