W3C home > Mailing lists > Public > www-svg@w3.org > June 2010

Re: pservers-grad-19-b.svg

From: Chris Lilley <chris@w3.org>
Date: Mon, 7 Jun 2010 13:55:14 +0200
Message-ID: <1382494590.20100607135514@w3.org>
To: Robert Longson <longsonr@gmail.com>
CC: www-svg@w3.org
On Sunday, June 6, 2010, 11:05:26 AM, Robert wrote:

RL> Hi,

RL> Most of the non-visible elements are inside a <g display="none">
RL> while allowed, having them in a <defs> instead is better isn't it? Should the test be changed?

It makes no particular difference in practice:

"Elements that are descendants of a ?defs? are not rendered directly; they are prevented from becoming part of the rendering tree just as if the ?defs? element were a ?g? element and the ?display? property were set to none."
http://dev.w3.org/SVG/profiles/1.1F2/publish/struct.html#Head

but yes, in theory it is a cleaner coding practice.

"It is recommended that, wherever possible, referenced elements be defined inside of a ?defs? element."
http://dev.w3.org/SVG/profiles/1.1F2/publish/struct.html#Head

I changed the test as you suggest.

-- 
 Chris Lilley                    mailto:chris@w3.org
 Technical Director, Interaction Domain
 W3C Graphics Activity Lead
 Co-Chair, W3C Hypertext CG
Received on Monday, 7 June 2010 11:55:19 GMT

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