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

Re: pseudo-elements and *

From: Daniel Glazman <glazou_2000@yahoo.fr>
Date: Sat, 04 Nov 2000 22:24:42 +0100
Message-ID: <3A047E9A.3060803@yahoo.fr>
To: fantasai <fantasai@escape.com>
CC: www-style@w3.org
fantasai wrote:

> Does the universal selector (*) apply to pseudo-elements?
> example - given the following
> p::first-line {color: red}
> * {color: black !important}
> Will the first line of each <p> be red or black?

Eeehhhh. Perhaps a very good catch... According to cascading
order (section 6.4.1 of the spec), the color of each P should
be black, even if the first rule has a more specific selector.

Just for information, both IE and Mozilla make it red.

By the way,  the two following rules should also make the first line
black, according to cascading order and specificity computation rules :

P::first-line { color :red }
P { color : black }

Again, just for information, IE and Mozilla render the first line in

It suggests that pseudo-elements have an impact on specificity...
I think that you found something we have to discuss internally in
the Working Group. Thanks !


Do You Yahoo!?
Achetez, vendez!  votre prix! Sur http://encheres.yahoo.fr
Received on Saturday, 4 November 2000 16:25:29 UTC

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