W3C home > Mailing lists > Public > www-style@w3.org > August 2008

Re: [css3-fonts] Nested 'bolder' and 'lighter' question

From: L. David Baron <dbaron@dbaron.org>
Date: Thu, 28 Aug 2008 15:48:30 -0400
To: Sylvain Galineau <sylvaing@microsoft.com>
Cc: "www-style@w3.org" <www-style@w3.org>
Message-ID: <20080828194830.GA23538@pickering.dbaron.org>

On Thursday 2008-08-28 12:32 -0700, Sylvain Galineau wrote:
> So is the issue that the spec handles fonts with 3+ weights but not 2 ?
> Or does it have an answer for this case but we do not like the answer ?

The number of weights you need for ambiguity to arise depends on the
testcase and the particular weights.  The examples given were
examples.

> Fwiw, I think the bolder==+1, lighter==-1 interpretations
> generally align with what is already in CSS 2.1 15.6. If the
> font's two weights are mapped to two subsets of the 100-900 weight
> range per the spec, the end result will be equivalent.

15.6 contains some contradictory statements as a result of previous
edits [1] which were themselves needed to resolve existing
contradictions.  See
http://csswg.inkedblade.net/spec/css2.1#issue-48 (and note that what
we're discussing is issue 49).

> Specifying a different outcome means special-casing fonts with two
> weights, so that if the UA were to fall back to such a font,
> 'boldness' may be distributed differently. (Or vice-versa, if the
> UA fell back from a 2-weight font to a 3-weight one).

It has nothing to do with special casing certain numbers of weights.
A particular testcase that shows the problem may be specific to a
certain number of weights, but the problem is general.

-David

[1] compare
    http://www.w3.org/TR/2003/WD-CSS21-20030128/fonts.html#font-boldness and
    http://www.w3.org/TR/2003/WD-CSS21-20030915/fonts.html#font-boldness ,
    derived from proposal at
    http://lists.w3.org/Archives/Member/w3c-css-wg/2002OctDec/0186.html
    which is unfortunately member-only

-- 
L. David Baron                                 http://dbaron.org/
Mozilla Corporation                       http://www.mozilla.com/
Received on Thursday, 28 August 2008 19:49:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:11 GMT