W3C home > Mailing lists > Public > www-style@w3.org > October 2008

Re: Selectors

From: Daniel Glazman <daniel.glazman@disruptive-innovations.com>
Date: Thu, 16 Oct 2008 17:27:02 +0200
Message-ID: <48F75D46.3000905@disruptive-innovations.com>
To: Anne van Kesteren <annevk@opera.com>
Cc: "www-style@w3.org" <www-style@w3.org>

Anne van Kesteren wrote:
> On Thu, 16 Oct 2008 15:55:35 +0200, Daniel Glazman 
> <daniel.glazman@disruptive-innovations.com> wrote:
>>      * Does :hover apply to parent of hovered element if that element
>>        is positioned "outside" of its parent?
> Seems that :hover should rely on hit testing just like mouse events. Not 
> sure why it matters where an element is positioned.

That's exactly why it is an issue !
Imagine an element having a sub-element positioned outside of its
parent. IF :hover works like a mouse event, then it bubbles from the
original target to the parent. But the mouse event occured OUTSIDE of
the box of the parent, which is not easy to understand from a CSS
author's perspective since he/she is not manipulating a mouse event in
a DOM but a pointer hovering some elements in a window...

Received on Thursday, 16 October 2008 15:27:39 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:40 UTC