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

Re: pseudo-elements and *

From: Ian Hickson <ianh@netscape.com>
Date: Sat, 4 Nov 2000 16:58:44 -0800 (Pacific Standard Time)
To: Daniel Glazman <glazou_2000@yahoo.fr>
cc: fantasai <fantasai@escape.com>, www-style@w3.org
Message-ID: <Pine.WNT.4.21.0011041657400.1004-100000@HIXIE.netscape.com>
On Sat, 4 Nov 2000, Daniel Glazman wrote:
> 
> 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 }

No, because the ::first-line pseudo-element is only matched by the first,
not the second. So the second takes precedence.


> It suggests that pseudo-elements have an impact on specificity...

This is actually unrelated, but they do (pseudo-elements have a
specificity of 001).

-- 
Ian Hickson                                     )\     _. - ._.)       fL
Netscape, Standards Compliance QA              /. `- '  (  `--'
+1 650 937 6593                                `- , ) -  > ) \
irc.mozilla.org:Hixie _________________________  (.' \) (.' -' __________
Received on Saturday, 4 November 2000 20:00:10 GMT

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