W3C home > Mailing lists > Public > www-style@w3.org > January 2009

Re: [selectors] [css21] :hover pseudo-class

From: Simetrical <simetrical@gmail.com>
Date: Mon, 26 Jan 2009 09:40:28 -0500
Message-ID: <7c2a12e20901260640o776ac5e3pcb5f5a07f23895@mail.gmail.com>
To: Giovanni Campagna <scampa.giovanni@gmail.com>
Cc: www-style@w3.org

On Mon, Jan 26, 2009 at 8:17 AM, Giovanni Campagna
<scampa.giovanni@gmail.com> wrote:
> Look at this CSS example:
>
> #my-div {
> display:block;
> width:150px;
> height:150px;
> background-color:red;
> }
> #my-div:hover {
> width:100px;
> heigth:100px;
> }

Here's a much simpler one:

a:hover { display: none; }

Example:

http://thor.twcenter.net/~aryeh/hovery.html

In Firefox it results in flickering.  I don't think there's anything
much more sensible to do here -- you could ignore the weird rules, but
it seems like you might end up ignoring something actually useful, and
there's no harm in odd rendering for pathological CSS like this.
Received on Monday, 26 January 2009 14:41:07 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:15 GMT