On 16 Oct 2007, at 05:21, Alex Dunae wrote:
> Hello all - I'm writing a CSS parser and have come up against a bit of
> confusion regarding CSS specificity.
>
> In my style sheet I have
>
> #head a { color: white; }
>
>
> In my HTML document I have
>
> ...
>
>
> Firefox and IE both render the link
What you're looking for is
http://www.w3.org/TR/CSS21/cascade.html#specificity
You can see that in 2.1 they included the 'style' attribute and give it
a specificity of 1000 (highest)
Alex Dunae wrote:
> Hello all - I'm writing a CSS parser and have come up against a bit of
> confusion rega
Hello all - I'm writing a CSS parser and have come up against a bit of
confusion regarding CSS specificity.
In my style sheet I have
#head a { color: white; }
In my HTML document I have
...
Firefox and IE both render the link as red but the CSS spec seems to say
that it should be white.
P