B.41. font-stretch
Many font families (Futura comes to mind) have not only different weights (e.g. normal, light, bold) and styles (e.g. normal, italic, oblique), but also different densities (e.g. normal, condensed, extended). This property lets you select the density of the font to be displayed in an element.
The CSS2 specification makes no mention of whether a browser should artificially condense or expand a font that does not have different density versions available; however, since most browsers do this for other font properties (e.g. font-style, font-weight, font-variant), this would not be unreasonable to expect. The property name certainly suggests that function.
Inherited: Yes
See also: Section B.37font
B.41.1. Value
One of 11 constants: ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access