- 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
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 UTC