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