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;}

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

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 UTC

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