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

RE: PointerEvents and pseudo css classes (such as :hover, :active)

From: Jacob Rossi <Jacob.Rossi@microsoft.com>
Date: Tue, 2 Oct 2012 01:00:35 +0000
To: Brandon Wallace <brandon.wallace@yahoo.com>, "public-pointer-events@w3.org" <public-pointer-events@w3.org>, "www-style@w3.org" <www-style@w3.org>, "tantek@cs.stanford.edu" <tantek@cs.stanford.edu>, Sylvain Galineau <sylvaing@microsoft.com>
Message-ID: <D0BC8E77E79D9846B61A2432D1BA4EAE066A2547@TK5EX14MBXC286.redmond.corp.microsoft.com>
> I don't know if this is the correct forum for this, but will PointerEvents influence the state of the pseudo css classes?  Will it be limited to just the primary pointer?  Or, for example, could the user hold 2 fingers down on 2 different elements to trigger both of their :hover styles?
> 
> Brandon

I think www-style will want to chime in on this. :hover/:active have generally been specified to be device independent. Though I don't know that we've had a definitive conversation on how they apply with multi-point/touch devices. This would probably be good to clarified in CSS4 UI.

In IE10, we apply :hover and :active for each individual pointer (e.g. even multi-touch). When a pointer is captured to an element (e.g. setPointerCapture()), it will not cause :hover on other elements.

That behavior is caveated that, with touch in IE10, 2-fingers causes zoom. So you'll have to disable that touch behavior (touch-action: none;) in order to actually see multiple :hover/:active in action.

-Jacob
Received on Tuesday, 2 October 2012 01:01:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:01 GMT