W3C home > Mailing lists > Public > www-style@w3.org > June 2003

Re: Scope of :hover

From: John Lewis <lewi0371@mrs.umn.edu>
Date: Tue, 3 Jun 2003 23:43:04 -0500
Message-ID: <2812754703.20030603234304@cda.mrs.umn.edu>
To: www-style@w3.org

Boris wrote on Tuesday, June 3, 2003 at 9:10:50 PM:

> John Lewis wrote:

>> A possible variant is letting :hover and *:hover apply only to
>> certain elements similar to Win IE (so they will be identical
>> selectors), but still letting h1:hover apply to h1 elements.

> This is what Mozilla does, in quirks mode. In standards mode, :hover
> and *:hover apply to everything.

> Out of curiousity, is the Opera behavior you described the same in
> quirks and standards mode?

Correction: Opera 7.11 in fact treats :hover and *:hover identically,
in a manner similar to Win IE. Sorry about the snafu. Opera behaves
the same in quirks and standards mode.

(I'm not sure if I was just plain wrong or if Opera's behavior changed
from version to version, but let's go with just plain wrong unless
someone says otherwise.)

What Mozilla does is probably an even better idea. If CSS explicitly
says to let :hover apply to anything, which is ideal except for its
real world problems, or remains as is, which is decent except for the
ambiguity, browsers in standards mode can follow the spec for the
minority of pages where it may be useful, and those same UAs in
"quirks mode" can follow Win IE's example. Neophyte and advanced
authors get what they want, and legacy pages have a good chance of
behaving decently.

-- 
John Lewis
Received on Wednesday, 4 June 2003 00:47:50 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:21 GMT