- From: Ryosuke Niwa <rniwa@apple.com>
- Date: Fri, 14 Nov 2014 12:34:21 -0800
- To: Boris Zbarsky <bzbarsky@mit.edu>, Florian Rivoal <florian@rivoal.net>
- Cc: whatwg@lists.whatwg.org
On Nov 10, 2014, at 2:48 PM, Boris Zbarsky <bzbarsky@mit.edu> wrote: > 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. Indeed. It appears to me that this use case can be solved by the proposed :has() relational pseudo class as long as the author has structured so that the label is an ancestor of the input control it’s associated with: http://dev.w3.org/csswg/selectors4/#relational Given that, I don’t find it compelling to natively support this behavior in the browser. - R. Niwa
Received on Friday, 14 November 2014 20:34:47 UTC