W3C home > Mailing lists > Public > www-svg@w3.org > August 2008

Can symbol contain width and height attributes?

From: Jiri Klement <jiri.klement@gmail.com>
Date: Wed, 13 Aug 2008 10:34:58 +0200
Message-ID: <c9ad9dbb0808130134v18f38245xbf118e6bc3f04b90@mail.gmail.com>
To: www-svg@w3.org


Is it possible to specify width and height of symbol in symbol
element? Is following svg valid?

<defs><symbol id="test" width="5" height="5">...</symbol></defs>
<use xlink:href="test"/>

The specification is not clear on this. From
http://www.w3.org/TR/SVG11/struct.html#UseElement it seems as it's
possible to define width&height in symbol element, but width and heigt
are not valid symbol attributes.

Firefox and batik use width and height specified in symbol element,
inkscape and opera ignores it.

Received on Wednesday, 13 August 2008 09:10:52 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 8 March 2017 09:47:14 UTC