font-variant

The font-variant CSS shorthand property allows you to set all the font variants for a font.

Initial value normal
Applies to all elements. It also applies to ::first-letter and ::first-line.

Syntax

  
font-variant: common-ligatures tabular-nums;
  

Values

Specifies a normal font face; each of the longhand properties has an initial value of normal. Longhand properties of font-variant are: font-variant-caps, font-variant-numeric, font-variant-alternates, font-variant-ligatures, and font-variant-east-asian.
Sets the value of the font-variant-ligatures to none and the values of the other longhand property as normal, their initial value.
Specifies the keywords related to the font-variant-ligatures longhand property. The possible values are: common-ligatures, no-common-ligatures, discretionary-ligatures, no-discretionary-ligatures, historical-ligatures, no-historical-ligatures, contextual, and no-contextual.
Specifies the keywords and functions related to the font-variant-alternates longhand property.
Specifies the keywords and functions related to the font-variant-caps longhand property.
Specifies the keywords related to the font-variant-numeric longhand property. The possible values are:  lining-nums, oldstyle-nums, proportional-nums, tabular-nums, diagonal-fractions, stacked-fractions, ordinal, and slashed-zero.
Specifies the keywords related to the font-variant-east-asian longhand property. The possible values are: jis78, jis83, jis90, jis04, simplified, traditional, full-width, proportional-width, ruby.

Browser support

font-variantchrome1edge12firefox1ie4opera3.5safari1
css_fonts_shorthandchrome52edge79firefox34ieopera39safari9.1
greek_accented_characterschromeedgefirefoxieoperasafari
turkic_ischrome31edge12firefox14ie4opera18safari8
uppercase_eszettchromeedgefirefoxieoperasafari

We use cookies to improve your experience. Learn more in our Privacy policy.

×