font-width

Experimental

A modern property (mostly in Safari/WebKit) that specifically controls the width axis of a variable font, similar to 'font-stretch' but with a more direct name.

.condensed-text {
  /* Squeezes the font width to 75% */
  font-width: 75%;
}
Initial value
normal
Inherited
Yes
Applies to
allElementsAndText
Animation type
byComputedValueType

Values

normalpercentageultra-condensedextra-condensedcondensedsemi-condensedsemi-expandedexpandedextra-expandedultra-expanded
Limited availability 1% global usage

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Not ready for production without a fallback.

18.4+
ESC