W3C home > Mailing lists > Public > www-style@w3.org > November 1999

Pseudo-elements and user style sheets

From: Matthew Brealey <thelawnet@yahoo.com>
Date: Thu, 11 Nov 1999 09:10:04 -0800 (PST)
Message-ID: <19991111171004.24329.rocketmail@web901.mail.yahoo.com>
To: www-style <www-style@w3.org>
Now a user might have this:

* {background-color: red !important;
color: blue !important;
font: 12pt Arial !important;}

5.3:
The universal selector, written "*", matches the name
of any element type. It matches any single
element in the document tree. 

5.10:
Neither pseudo-elements nor pseudo-classes appear in
the document source or document tree. 

So the user needs to add to his style sheet:

*, :before, :after, :first-line, :first-letter
{background-color: red !important;
color: blue !important;
font: 12pt Arial !important;}

I think this should be made clear in the spec.

=====
----------------------------------------------------------
From Matthew Brealey (http://members.tripod.co.uk/lawnet (for law)or http://members.tripod.co.uk/lawnet/WEBFRAME.HTM (for CSS))
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
Received on Thursday, 11 November 1999 12:10:06 GMT

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