W3C home > Mailing lists > Public > www-style@w3.org > March 1998

Re: pseudo-class suggestion

From: Russell Steven Shawn O'Connor <roconnor@wronski.math.uwaterloo.ca>
Date: Fri, 13 Mar 1998 09:23:04 -0500 (EST)
To: www-style@w3.org
Message-ID: <Pine.SOL.3.95q.980313091256.18336B-100000@wronski.math.uwaterloo.ca>
On Fri, 13 Mar 1998, Carl Johan Berglund wrote:
> At 22.28 +0100 98-03-12, David Perrell wrote:
> >Can we get some extra mileage out of the :active pseudo-class?
> >
> >   H2:active { color: green }
> >
> ><H2 ID=276>This is green when selected by a fragment ID</H2>
> Good idea!

It doesn't seem like a good idea to me.  The active and this fragment
pseudo-class idea are more different than similar.  Consider the following

<A NAME=foo HREF=foo.html>Some Link</>

Now the active pseudo-class can refer to this element in two completely
different ways.  One for the fragment ID case, and one for the active link
case.  The author is likely to want two different styles for the two
different cases.

The is no good reason for trying to cram as much as you can into a
pseudo-class.  Doing so only restricts the author as above, and makes
implementation more difficult.  It seems to only make the grammar shorter.

Russell O'Connor                           roconnor@uwaterloo.ca
"And truth irreversibly destroys the meaning of its own message"
-- Anindita Dutta, "The Paradox of Truth, the Truth of Entropy"
Received on Friday, 13 March 1998 09:23:07 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:46 UTC