Re: css clip property

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 UTC