Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-15 Thread Jeroen Visser [ vizi ]
John Allsopp wrote: OK, thanks for all the answers, I buy them :-) That would be four cents then, please. Anything else? ;-) Jeroen Visser -- vizi fotografie & grafisch ontwerp - http://www.vizi.nl/ ** The discussion list for http://webstandardsg

Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread John Allsopp
OK, very good answers all, and I tend to agree I suppose it might be best considered like this h1, h2 {} is *really* h1{} h2{} BTW, just a little aside, this is just a tiny example of why writing browsers, and development tools is really hard, because these kinds of issue come up all the time wi

Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread John Horner
I agree with the "they're equal" theory. Here's my reasoning. We should "count the number of element names and pseudo-elements in the selector" yes, but "h1, h2" is not a selector. It's two selectors. "Have You Validated Y

Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread russ - maxdesign
They have the same weight. They are just groupings of individual selectors. More on this here: http://www.w3.org/TR/CSS21/selector.html#grouping Theoretically, a browser must sort each element separately, so it will gather any rule that includes an h1 and then sort out the weightings. As the brow

Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread Jeff - Accessibility 1st
They are both equal, because of the comma separation. Cheers Jeff Lowder Accessibility 1st Website: http://www.accessibility1st.com.au On 15/12/04 9:46 AM, "John Allsopp" <[EMAIL PROTECTED]> wrote: > Perhaps someone has seen, or has a definitive answer to this question > > which has the highe

Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread Nick Gleitzman
On 15 Dec 2004, at 9:46 AM, John Allsopp wrote: which has the higher specificity h1 {} or h1, h2 {} (don't worry about the order in the style sheet, just in an absolute sense) Relevant part of the CSS specification is here http://www.w3.org/TR/CSS21/cascade.html#specificity FWIW, I think it is am

Re: [WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread Patrick H. Lauke
John Allsopp wrote: Perhaps someone has seen, or has a definitive answer to this question which has the higher specificity h1 {} or h1, h2 {} (don't worry about the order in the style sheet, just in an absolute sense) Specificity is exactly the same. Refer to "5.2.1 Grouping" "When several selector

[WSG] pop quiz: calculating specificity of group selectors

2004-12-14 Thread John Allsopp
Perhaps someone has seen, or has a definitive answer to this question which has the higher specificity h1 {} or h1, h2 {} (don't worry about the order in the style sheet, just in an absolute sense) Relevant part of the CSS specification is here http://www.w3.org/TR/CSS21/cascade.html#specificity