Adam Kuehn wrote:
> 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.
I quoted what I thought was the part relevant to my question. My
question was not that font was explicitly applying 70%, but what it was
applying the 70% against, the "initial" value the spec refers to. My
interpretation was that inheriting 70% of 100% would be what the font-size
property would apply to, while "reset" from the font property would make
the inherited value 100% of the default. And so my question seems to
remain unanswered by the mud above. Let me rephrase my question:
html body {font-size: 80%}
p.one {font-size: 80%}
p.two {font: normal 80%}
...
<p class="one">From reading the CSS spec, I expect this to be 64% of the
browser default.</p>
<p class="two">From reading the CSS spec, I expect this to be 80% of the
browser default.</p>
My real question is the meaning of initial. If it doesn't refer to the
browser default, what is the purpose of the reset that the font property
provides? Of what use is its reset function?
--
"Through Him all things were made; without Him nothing was made
that has been made." John 1:3 NIV
Team OS/2 ** Reg. Linux User #211409
Felix Miata *** http://members.ij.net/mrmazda/auth/
______________________________________________________________________
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/