font-variant-numeric
Controls how numbers are displayed. You can use it to create 'old-style' numbers, slashed zeros (to distinguish 0 from O), or fractions.
Quick example
.pricing-table {
/* Uses slashed zeros and tabular numbers for better alignment */
font-variant-numeric: slashed-zero tabular-nums;
} Quick facts
Initial value
normalInherited
Yes
Applies to
all elements and text
Animation type
discrete
Values
normalordinalslashed-zero font-variant-numeric Browser Support
Widely available Since 2020 96% global usage
This feature is well established and works across many devices and browser versions. It has been available across browsers since 2020.
Safe to use without fallbacks.
52+
34+
9.1+
79+