- From: John Daggett <jdaggett@mozilla.com>
- Date: Wed, 7 Nov 2012 21:03:44 -0800 (PST)
- To: www-style list <www-style@w3.org>
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? Regards, John Daggett
Received on Thursday, 8 November 2012 05:04:12 UTC