Boris Zbarsky wrote:
John J. Barton wrote:
No, this is how CSS works in general. Properties that inherit by
default only get the inherited value if they're not explicitly
specified.
Or to say this slightly differently: properties of this type inherit
first, then are overridden by explicit values.
OK. You could view it that way, sure (but see below).
...
In your original case the thing that would be inherited is a length
equal to 36px.
I guess the original case is an explicit (not inherited?) value of 36px:
<div style="font-size: 10 px ! important">
<a style="font-size: 36px">link</a> </div>
In Firebug the values are ok until we get to its markOverridenProps().
Then the 10px overrides the 36px, incorrectly. That is, the code
incorrectly uses !important from the inherited property 10px to decide
to override 36px.
I've fixed this case by tracking which properties are inherited and
ignoring their 'important' setting when overriding.
Thanks for your help Boris. Of course when everyone screams that I broke
the Style panel in Firebug I'll be back...
John.
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout