W3C home > Mailing lists > Public > www-style@w3.org > May 2009

Re: bolder/lighter defintion

From: John Daggett <jdaggett@mozilla.com>
Date: Tue, 19 May 2009 18:04:24 -0700 (PDT)
To: "Ph. Wittenbergh" <jk7r-obt@asahi-net.or.jp>
Cc: www-style List <www-style@w3.org>
Message-ID: <32697981.137061242781464174.JavaMail.root@cm-mail01.mozilla.org>
>>> Just to clear up any possible misunderstanding on my part. Assuming
>>> the used font has weights 100, 200, 300 and 400, and the parent
>>> element is set to use font-weight 100, then 'bolder' for a
>>> descendent element will still map to 200. Correct ? Or will it
>>> always go to 400 ?
>>
>> No, the bolder/lighter calculation here is independent of the font
>> family, it will always jump to 400 if the parent element has weight
>> 100, irregardless of the set of weights available for any given
>> family.
>
> Hmm. Ok. This does mean that Gecko and WebKit will need to change
> their implementation. At least on OS X 10.5, 'bolder' goes from 100 to
> 200 and so on. Which is quite intuitive.

Yes, implementations would need to change.  But this will need to happen
to some extent since the behavior today is not clearly defined and there
are subtle differences in implementations.

It's a fine point but Gecko only goes from 100 to 200 if faces for both
weights exist, but that's probably what you meant.

John
Received on Wednesday, 20 May 2009 01:05:04 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:18 GMT