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

On Mon, Oct 1, 2012 at 6:00 PM, Jacob Rossi <Jacob.Rossi@microsoft.com> wrote:
>> 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?
>
> 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.

I'd have to look carefully to make sure, but I think IE's behavior is
the correct behavior in general.

~TJ

Received on Tuesday, 2 October 2012 01:42:22 UTC