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
<div id="head"><a href="#" style="color: red;">...</a></div>
Firefox and IE both render the link as red but the CSS spec seems to say
that it should be white.
Per http://www.w3.org/TR/REC-CSS2/cascade.html#cascading-order
the rule in my stylesheet should have a specificity of 101 while the
inline attribute should have a lower specificity, 100.
Am I reading this incorrectly or is this just browsers ignoring part of
the spec.
Thanks in advance,
Alex
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/