W3C home > Mailing lists > Public > www-style@w3.org > November 2012

Re: [css3-fonts] adding font-stretch values to font shorthand

From: Simon Sapin <simon.sapin@kozea.fr>
Date: Sat, 10 Nov 2012 23:29:27 +0100
Message-ID: <509ED547.8060202@kozea.fr>
To: "Tab Atkins Jr." <jackalmage@gmail.com>
CC: John Daggett <jdaggett@mozilla.com>, www-style list <www-style@w3.org>
Le 08/11/2012 18:47, Tab Atkins Jr. a écrit :
> On Wed, Nov 7, 2012 at 9:03 PM, John Daggett<jdaggett@mozilla.com>  wrote:
>> >The CSS3 Fonts spec does not currently include 'font-stretch' property
>> >values in the 'font' shorthand.  I think it can without complicating
>> >what is already some relatively tricky parsing code needed for the
>> >'font' shorthand.
>> >
>> >Current 'font' shorthand syntax:
>> >
>> >   font : [ [ <font-style> || <font-variant-css21> || <font-weight> ]?
>> >            <font-size> [ / <line-height> ]? <font-family> ]
>> >          | caption | icon | menu | message-box | small-caption | status-bar
>> >
>> >With 'font-stretch' added:
>> >
>> >   font : [ [ <font-style> || <font-variant-css21>
>> >              || <font-weight> || <font-stretch> ]?
>> >            <font-size> [ / <line-height> ]? <font-family> ]
>> >          | caption | icon | menu | message-box | small-caption | status-bar
>> >
>> >Since all the non-normal values of 'font-stretch' don't overlap with
>> >the property values for any of the values for 'font-weight', 'font-style',
>> >'font-variant' or 'font-size', it's relatively simple to add this addition
>> >to CSS parsing code.
>> >
>> >Thoughts, comments?
> Works for me.

Sounds good and easy enough.

-- 
Simon Sapin
Received on Saturday, 10 November 2012 22:29:59 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:02 GMT