W3C home > Mailing lists > Public > www-svg@w3.org > December 2006

Clipping path restrictions

From: Robin Berjon <robin@berjon.com>
Date: Fri, 15 Dec 2006 16:19:59 +0100
Message-Id: <A020B95F-F543-4343-A025-4D9B41C249AD@berjon.com>
To: www-svg <www-svg@w3.org>

Dear SVG WG,

in the SVG 1.1 specification I note the following restriction:

[[
A 'clipPath' element can contain 'path' elements, 'text' elements,  
basic shapes (such as 'circle') or a 'use' element. If a 'use'  
element is a child of a 'clipPath' element, it must directly  
reference 'path', 'text' or basic shape elements. Indirect references  
are an error (see Error processing).
]]

Is there a justification for it? For instance, why wouldn't one be  
able to reference a <g> element? Is this due to transforms or some  
similar issue?

If there is a good reason for this restriction it would be nice to  
include it in the specification (things well understood being also  
well remembered) and if there isn't then removing it would likely be  
best.

Also, the description for what clip-rule does is, ahem, let us say  
somewhat cursory? Even a single sentence explaining what it does (as  
opposed to a couple of examples as to when it applies, and a  
reference to fill-rule) would be useful.

Thanks!

-- 
Robin Berjon - http://berjon.com/
------------------------------------------------------------------------
"Politics is the entertainment arm of Industry."
                         -- Zappa
Received on Friday, 15 December 2006 15:20:18 GMT

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