[csswg-drafts] [css-fonts-4] [varfonts] font-stretch should accept <number>

bramstein has just created a new issue for 
https://github.com/w3c/csswg-drafts:

== [css-fonts-4] [varfonts] font-stretch should accept <number> ==
The current draft for variable font support [defines 
`font-stretch`](https://drafts.csswg.org/css-fonts-4/#font-prop-desc) 
to accept the following values:

```css
normal | ultra-condensed | extra-condensed | condensed | 
semi-condensed | semi-expanded | expanded | extra-expanded | 
ultra-expanded | <percentage>
```

Even though `<percentage>` may seem like a natural fit (and even 
suggested by the [OT variable font 
spec](https://www.microsoft.com/typography/otspec/fvar.htm#VAT)), it 
excludes the use of `calc()` to dynamically calculate a value along 
the `wdth` axis.

There have been several attempts at using a condensed typeface at 
narrow viewports (most notably on A List Apart). It is plausible that 
web developers will want to dynamically calculate a value for 
`font-stretch`, so `<number>` seems more appropriate to me (though as 
a work around, the lower level `font-variation-settings` could also be
 used).

Please view or discuss this issue at 
https://github.com/w3c/csswg-drafts/issues/524 using your GitHub 
account

Received on Friday, 23 September 2016 12:07:52 UTC