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

Re: :hover and :active interaction with labels

From: Ian Hickson <ian@hixie.ch>
Date: Tue, 31 Jan 2012 23:55:53 +0000 (UTC)
To: Boris Zbarsky <bzbarsky@MIT.EDU>
cc: www-style@w3.org
Message-ID: <Pine.LNX.4.64.1201312346590.3868@ps20323.dreamhostps.com>
On Wed, 14 Dec 2011, Boris Zbarsky wrote:
>
> On 12/14/11 6:29 PM, Ian Hickson wrote:
> > Can't that be explained by native styling rules? Or indeed, styling rules
> > in the binding?
> 
> I don't quite see how.
> 
> > Hmm. I guess we can spec it that way too, but that seems a bit awkward
> > (not to mention technically not being consistent with Selectors'
> > definitions...).
> 
> I don't much care which spec this is handled in.

Upon further investigation, I agree with your assertion that this has to 
be part of :hover's definition.

Specifically:

   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1315
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1316
   http://software.hixie.ch/utilities/js/live-dom-viewer/saved/1317

...it seems :hover should be defined, at least for HTML's purposes, as 
working as follows:

: An element matches :hover if:
:
:  - It is designated by a pointing device, or
:  - Any of its descendants are designated by a pointing device, or
:  - It is the "labeled control" of a <label> element that matches :hover.

Like Boris, I don't mind where this is specced, but we should spec it 
somewhere. Is the Selectors spec able to spec this?

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Tuesday, 31 January 2012 23:56:25 GMT

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