W3C home > Mailing lists > Public > www-svg@w3.org > January 2001

Re: [svg-developers] Is the <g> element redundant in SVG?

From: Blaine Brodie <bbrodie@savagesoftware.com>
Date: Wed, 10 Jan 2001 17:26:43 -0800
Message-id: <fc.0085846d000264313b9aca00221e3aa6.26432@savagesoftware.com>
To: www-svg@w3.org, svg-developers@egroups.com
>I wonder if someone can help me. I am trying to figure out what purpose
>the 
><g> element serves in SVG 1.0.
>
>I am not asking how to use it. That I understand. At least I think I do.
>:)
>
>But why is the <g> element there at all? Since the <svg> element can be 
>nested and implicitly groups elements nested within it what is the unique 
>value that the <g> element adds?
>
>Am I missing some obvious unique aspect of the <g> element? Or could it 
>simply be deleted from SVG 1.0 with no loss and nested <svg> elements
>serve 
>the same purpose?
The <g> element can be used to apply transformations to its children, but
<svg> can not.

valid:
	<g transform="rotate(45)"> ...

invalid:
	<svg transform="rotate(45)">...
>
>
---
Blaine
Received on Wednesday, 10 January 2001 20:27:03 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:19 GMT