Felix Miata wrote:
But then I noticed use of not font-size, but font, and I thought about this: "All font-related properties are first reset to their initial values" http://www.w3.org/TR/CSS21/fonts.html#font-shorthand. So where is the "initial" font-size value coming from to make the inherited value 70% instead of 100%? Aren't "initial" values supposed to come from the browser? Why is .content table creating the "initial" value for font-size for .content p here?
You aren't quoting enough of the spec. The full quote is this: "All font-related properties are first reset to their initial values, including those listed in the preceding paragraph [i.e 'font-style', 'font-variant', 'font-weight', 'font-size', 'line-height' and 'font-family']. Then, those properties that are given explicit values in the 'font' shorthand are set to those values."
In other words, the percentage font-size value given in the rule is an explicit value (here, 70%) and so that *is* the value used. On the other hand, if no value appears in the shorthand rule, then initial value would be used. But since font-size is always required as part of the font shorthand, effectively the font-size value is never set to the initial value determined by the browser, unless that value (=="medium") is set explicitly in the rule. Clear as mud?
Admittedly, the spec could be written more elegantly on this point, but I think the meaning is clear: If you set a value explicitly, that's the value for that property; if you don't, you get the default.
HTH, -- -Adam Kuehn ______________________________________________________________________ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
