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

Re: Can symbol contain width and height attributes?

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Wed, 13 Aug 2008 17:34:55 +0200
To: "Jiri Klement" <jiri.klement@gmail.com>, www-svg@w3.org
Message-Id: <200808131734.55724.Dr.O.Hoffmann@gmx.de>

Am Mittwoch, 13. August 2008 14:45 geschrieben:
> 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.

As far as I understand this, having this example:

<symbol id="x" viewBox="-30 20 110 700" preserveAspectRatio="none"
fill="blue" ...>


<use xlink:href="#x" x="100" y="140" width="200" height="220" fill="red" .../>


This is rendered like (apart from the problem, that this cannot really be
replaced multiple times because of the id-Attribute in a real document):

<g transform="translate(100,140)"  fill="red" ...>

<svg id="x" viewBox="-30 20 110 700" preserveAspectRatio="none"
width="200" height="220" fill="blue" ...>




What is your interpretation?
Received on Wednesday, 13 August 2008 15:56:07 UTC

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