Skip to content

[css-fonts-4] [varfont] font-stretch should accept <number> to support calc() #524

@bramstein

Description

@bramstein

The current draft for variable font support defines font-stretch to accept the following values:

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), 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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions