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

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 UTC