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

Re: Can symbol contain width and height attributes?

From: Jiri Klement <jiri.klement@gmail.com>
Date: Wed, 13 Aug 2008 14:45:28 +0200
Message-ID: <c9ad9dbb0808130545s65bd2888n435e90416559ad60@mail.gmail.com>
To: www-svg@w3.org, "Dr. Olaf Hoffmann" <Dr.O.Hoffmann@gmx.de>

I think firefox and batik use width and height in 'symbol' as default
value for width and height in 'use', so it makes some sense. Also
documentation about referencing 'symbol' with 'use' is a bit unclear.
It says 'symbol' is deep cloned into generated tree, with exception
that 'symbol' is replaced with 'svg'. It might give an impression than
'symbol' attributes are cloned as well.

Anyway DTD says 'symbol' shouldn't have width and height attributes,
so I will report bugs to batik and firefox.

On Wed, Aug 13, 2008 at 11:56 AM, Dr. Olaf Hoffmann
<Dr.O.Hoffmann@gmx.de> wrote:
> Hi too,
> symbol can have a viewBox,
> the use can have width and height
> in the full versions.
> Both together determine, how a symbol
> appears, if referenced with a use element.
> See DTD:
> http://www.w3.org/TR/SVG11/svgdtd.html#DTD.1.17
> Because symbol is never rendered directly
> http://www.w3.org/TR/SVG11/struct.html#SymbolElement
> there is obviously no need for width and height, they have
> simply no meaning for something not directly appearing
> anywhere rendered somehow ;o)
> If you find, that the width and height accidently set on
> symbol have an effect on rendering somehow except an
> appearence of a warning message or something
> in a specific user agent, I think, you can report this
> as a bug to the developers of this user agent.
> The same applies, if symbol is directly rendered.
> http://www.w3.org/TR/SVG11/implnote.html#ErrorProcessing
Received on Wednesday, 13 August 2008 12:46:03 UTC

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