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

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.  :(

-Boris

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