font-variant
Widely availableSince 201597% of users
A shorthand property that lets you control advanced typographic features like small caps, old-style numerals and special ligatures. It helps you make text look more professional and polished if the font supports it.
What's modern
From web-features, MDN's browser data and our snippets, checked dailyClassic, with newer partsIt has worked everywhere since July 2015, and it keeps getting newer values.
Newer parts of font-variant
historical-formsBaseline Mar 2023, Widely Sept 2025subBaseline Feb 2023, Widely Aug 2025superBaseline Feb 2023, Widely Aug 2025all-petite-capsBaseline Jan 2020, Widely Jul 2022all-small-capsBaseline Jan 2020, Widely Jul 2022common-ligaturesBaseline Jan 2020, Widely Jul 2022contextualBaseline Jan 2020, Widely Jul 2022CSS Fonts Module Level 3 shorthandBaseline Jan 2020, Widely Jul 2022
See how modern your own CSS is.Check your CSS →
Quick facts
- Initial value
normal- Inherited
- Yes
- Applies to
- all elements and text
- Animation type
- discrete
Quick example
.fancy-header {
font-variant: small-caps;
/* turns lowercase letters into smaller versions of capital letters */
}Values
normalnonestylistichistorical-formsstylesetcharacter-variantswashornamentsannotationsmall-capsall-small-capspetite-capsall-petite-capsunicasetitling-capsordinalslashed-zerorubyfont-variant browser support
BaselineWidely availableThis feature is well established and works across many devices and browser versions. It has been available across browsers since 2015.Safe to use without fallbacks.
Usage97%of people can use this3% use a browser without it.
Browsers
1+
1+
1+
12+Mobile
18+Android
4+Android
1+iOS