Boris Zbarsky wrote:
John J. Barton wrote:
The computed font-size of the <a> is 36px. font-size does inherit by
default, but only by default. If it's specified on the node
directly, the computed value is the specified value.
Sounds to me like the firebug display is pretty wrong.
Actually Firebug is mostly right, I think I am misrepresenting what it
is doing.
-Boris
Ouch! Is this special case for font-size only?
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. Firebug has
"inheritedStyleNames" containing the properties of
http://www.w3.org/TR/CSS2/propidx.html that have "yes" for "inherited?"
column.
Properties that don't inherit by default (e.g. display) get
the default value if not explicitly specified.
So properties of this type default first, then are overridden by
explicit values.
All of that makes sense to me. But not the font-size.
>>> font-size does inherit by default, but only by default.
Sorry I don't get the distinction. The spec says
yes, the computed value is inherited,
refer to parent element's font size
So I guess: font-size inherits actual (not CSS-style-specification)
font-size of parent then overridden by explicit values?
jjb
_______________________________________________
dev-tech-layout mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-layout