Re: pservers-grad-19-b.svg

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 UTC