- From: <szukw000@arcor.de>
- Date: Sat, 21 Jan 2006 23:15:57 +0100 (CET)
- To: www-style@w3.org
------------------ SOURCE_1: http://www.w3.org/TR/2005/WD-CSS21-20050613 6.4.3 Calculating a selector's specificity A selector's specificity is calculated as follows: * count 1 if the selector is a 'style' attribute rather than a selector, 0 otherwise (= a) (In HTML, values of an element's "style" attribute are style sheet rules. These rules have no selectors, so a=1, b=0, c=0, and d=0.) * count the number of ID attributes in the selector (= b) * count the number of other attributes and pseudo-classes in the selector (= c) * count the number of element names and pseudo-elements in the selector (= d) ------------------ SOURCE_2: http://www.w3.org/TR/2005/WD-css3-selectors-20051215 9. Calculating a selector's specificity A selector's specificity is calculated as follows: * count the number of ID selectors in the selector (= a) * count the number of class selectors, attributes selectors, and pseudo-classes in the selector (= b) * count the number of element names in the selector (= c) * ignore pseudo-elements ------------------ Is the statement 'ignore pseudo-elements' in CSS3 a bug? If not: shouldn't there be a comment in CSS3 to explain this essential change? What made this change necessary? winfried Machen Sie aus 14 Cent spielend bis zu 100 Euro! Die neue Gaming-Area von Arcor - über 50 Onlinespiele im Angebot. http://www.arcor.de/rd/emf-gaming-1
Received on Saturday, 21 January 2006 22:18:23 UTC