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

Re: css clip property

From: Dr. Olaf Hoffmann <Dr.O.Hoffmann@gmx.de>
Date: Tue, 16 Feb 2010 19:37:23 +0100
To: www-svg@w3.org
Message-Id: <201002161937.23125.Dr.O.Hoffmann@gmx.de>
Boris Zbarsky:
....
>
> > Due to these CSS problems, maybe this property should be
> > removed from future versions of SVG. Authors can simply
> > replace it with the related SVG feature to get a predictable
> > behaviour right now.
>
> As far as I'm concerned, the entire mess with CSS use in SVG wherein SVG
> uses the same names for different things is completely broken.  Either
> tracking CSS without modifying it or not using CSS at all would have
> been better than the current state of affairs.
>
> -Boris

My idea would be to recommend to use clipPath etc instead.
The related properties clip-path and clip-rule do not appear in
other areas of CSS, therefore this could avoid both confusion 
and dependencies on CSS (without a version indication).
Especially because CSS does not provide other paths than this
rectangle currently, there are not so much options for SVG authors
anyway with this property. They mainly have to learn a different
syntax for clip (or two - one for SVG1.0/1.1 and maybe another for 
a future SVG version) without some significant advantage. 
It saves time and resources to concentrate on clipPath, because 
it is more flexible anyway and does not have such an unfortunate 
history. I already note this in my tutorials just to provide authors 
something with a good chance of a predictable behaviour ;o)

Olaf
Received on Tuesday, 16 February 2010 18:42:45 GMT

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