W3C home > Mailing lists > Public > www-style@w3.org > August 2012

Re: [css2][css3-exclusions] 'clip' with more shapes and all elements

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Sun, 19 Aug 2012 13:13:36 -0700
Message-ID: <CAAWBYDDKX3WPM0+uiear-AuiCahAQZ-2+uekw75owOG8JD6hiQ@mail.gmail.com>
To: Dirk Schulze <dschulze@adobe.com>
Cc: www-style list <www-style@w3.org>
On Sun, Aug 19, 2012 at 9:42 AM, Dirk Schulze <dschulze@adobe.com> wrote:
> I wonder if it is possible to extend the 'clip' property to apply to all elements (instead of just absolute positioned elements) [1]? FF applies 'clip-path'[2] to all elements already. What are the concerns to do so on 'clip'?
>
> Can we extend 'clip' to use more shapes then just 'rect'? If we get rid of these limitations, the 'clip' property would be a lot more useful (or maybe useful for the first time? ;) ). The basic shapes 'circle', 'ellipse' and 'polygon' (but also 'rectangle') from the exclusion spec [3] seem to be good candidates.

Yes, we can and we should (imo). I'm not sure why 'clip' is restricted
just to abspos per spec; I assume it's to avoid possible confusion
because it doesn't change the geometry of the object.

> 'clip-path' could still be used for referencing SVG 'clipPath' elements or could shadow 'clip' and 'clip' supports a <FuncIRI> as well.

We've finally stumbled on a decent way to handle aliasing -
'clip-path' can be treated as a shorthand for 'clip', and we can add
url()/select() to 'clip' in addition to the shape functions.

~TJ
Received on Sunday, 19 August 2012 20:14:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:58 GMT