W3C home > Mailing lists > Public > public-css-archive@w3.org > September 2016

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

From: Bram Stein via GitHub <sysbot+gh@w3.org>
Date: Fri, 23 Sep 2016 12:07:45 +0000
To: public-css-archive@w3.org
Message-ID: <issues.opened-178860180-1474632463-sysbot+gh@w3.org>
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

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:03 UTC