W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2014

Re: [whatwg] relationship between labeled control and label for :active and :hover pseudos

From: Boris Zbarsky <bzbarsky@mit.edu>
Date: Mon, 10 Nov 2014 17:48:29 -0500
Message-ID: <546140BD.3060805@mit.edu>
To: Florian Rivoal <florian@rivoal.net>
Cc: whatwg@lists.whatwg.org
On 11/10/14, 5:31 PM, Florian Rivoal wrote:
> That said, the labeled control also maintains a list of references to the associated labels, so there is no particular difficulty involved in finding them.

The difficulty is not finding them.  The difficulty is efficiently 
updating hover state on the set of ancestors of all the nodes involved, 
some of which might still be in hover state when the control ceases to be.

> and when they do merge

Detecting that things merge is ... not that fast.  Not if you have to do 
it in realtime as the mouse moves, and have to do it pairwise on a bunch 
of nodes at once.

> All in all, while I agree this is potentially slower, I don’t think it will be significantly different in anything but pathological cases.

Unfortunately, browsers have to be fast on pathological cases too, in 
practice.  :(

Received on Tuesday, 11 November 2014 00:31:08 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:26 UTC