W3C home > Mailing lists > Public > www-style@w3.org > July 2011

Clarification of :hover and :active

From: Shane Stephens <shans@google.com>
Date: Tue, 5 Jul 2011 11:20:56 +1000
Message-ID: <CAGTfzwS4-Q-XCPidnSjXVuNawXsw54RAVsMSfqOypt+QKnKKcA@mail.gmail.com>
To: www-style list <www-style@w3.org>
Currently Gecko and WebKit do different things with this:

#button:hover:active {background: green;}
#button:active {background: blue;}
<div id="button">Div button is div</div>

Gecko changes the background to blue when you click on the div and
then drag out; WebKit leaves the background blue.

The specification doesn't really say which one is correct - in
particular "The :hover pseudo-class applies while the user designates
an element with a pointing device" (from
seems to leave both behaviors open.

Is this intended to be left up to implementors?

Received on Tuesday, 5 July 2011 01:21:21 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:01 UTC