W3C home > Mailing lists > Public > public-fx@w3.org > October to December 2012

Re: [css-masking] Using masks and clipping to allow or inhibit selections or events.

From: Dirk Schulze <dschulze@adobe.com>
Date: Thu, 15 Nov 2012 15:37:04 -0800
To: Ian Tindale <ian.tindale@gmail.com>
CC: "public-fx@w3.org" <public-fx@w3.org>
Message-ID: <1FF792C7-5919-446D-A6C9-C0C0B8221416@adobe.com>

On Nov 15, 2012, at 2:57 PM, Ian Tindale <ian.tindale@gmail.com> wrote:

> Iíd like it if masks could be drawn for the purpose of defining areas in which selection is either possible or impossible. Itíd make web apps act more like desktop apps, if we didnít have the whole viewport able to be accidentally selected or turned blue by stray clicks or similar events.

This is actually not the purpose of CSS Masking. However, 'clip-path' does influence hit testing as well. Means that outside of the clipping region no pointer events are send to the element. Another possibility is 'pointer-events' where you can disable hit testing for the whole element. This property was designed for SVG, but work on HTML in some browsers as well.


> -- 
> Ian Tindale
Received on Thursday, 15 November 2012 23:37:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:49:43 UTC