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

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

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 29 Aug 2008 12:51:11 -0400
Message-ID: <48B828FF.9050104@mit.edu>
To: "www-style@w3.org" <www-style@w3.org>

On Aug 29, 2008, at 8:48 AM, Bert Bos wrote:
>  * 'bolder' selects the next weight that is assigned to a font that is
>    darker than the *parent's weight* [was: inherited one]. If there is
>    no such weight, it simply results in the next darker numerical value
>    [remove: (and the font remains unchanged)], unless the inherited
>    value was '900' in which case the resulting weight is also '900'.

Won't this mean that if we're at 900 and then do bolder and then do 
lighter we'll end up at 800?  That doesn't match what happens when we're 
at 800 to start with, and I'm not sure the inconsistency is desirable.

It would possibly make more sense to allow specified font-weight to be 
100-900, computed font-weight to be any integer multiple of 100, and 
used font-weight to clamp computed to 100-900.

-Boris
Received on Friday, 29 August 2008 16:51:54 GMT

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