W3C home > Mailing lists > Public > www-style@w3.org > February 2004

Re: [css3-page] LCWD issue 23 -- [23] Section 3.4.1 Example

From: Michael Day <mikeday@yeslogic.com>
Date: Tue, 10 Feb 2004 07:22:07 +1100 (EST)
To: Ernest Cline <ernestcline@mindspring.com>
Cc: W3C CSS List <www-style@w3.org>
Message-ID: <Pine.LNX.4.44.0402100715340.19876-100000@lorien.yeslogic.com>


Hi Ernest,

I see your point regarding the page "pseudo-classes"; in Prince we have 
implemented them such that :first has higher specificity:

        any   = specific(0,0,0)
        left  = specific(0,0,1)
        right = specific(0,0,1)
        first = specific(0,1,0)
        named = specific(1,0,0)

However, the rule for regular element pseudo-classes is not so simple
either, due to the negated pseudo-class, whose specificity is the
specificity of the simple selector that it negates:

	*          = specific(0,0,0)
	foo        = specific(0,0,1)
	:link      = specific(0,1,0)
	#foo       = specific(1,0,0)
	:not(#foo) = specific(1,0,0)

Does this change anything?

Michael

-- 
YesLogic Prince prints XML!
http://yeslogic.com
Received on Monday, 9 February 2004 16:24:36 GMT

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