Re: pseudo-elements and *

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