Skip to content
Skip the list of specifications

font-variant

matches Chrome on some values: 3 of 11 decided examples match Chrome; 1 not decided

css-fonts-4

Some of the examples match Chrome and some do not: the count says how many, and the values that differ are listed first, each with its difference map.

The 8 that do not: font-variant:all-small-caps, font-variant:all-petite-caps, font-variant:super, font-variant:unicase, font-variant:small-caps, font-variant:petite-caps, font-variant:emoji, font-variant:sub. They come first below, each with its difference map.

What the specification says

Initial valuenormal
Applies toall elements and text
Inheritedyes
Percentagesn/a
Computed valueas specified
Syntaxnormal | none | [ [ <common-lig-values> || <discretionary-lig-values> || <historical-lig-values> || <contextual-alt-values> ] || [ small-caps | all-small-caps | petite-caps | all-petite-caps | unicase | titling-caps ] || [ stylistic(<font-feature-value-name>) || historical-forms || styleset(<font-feature-value-name>#) || character-variant(<font-feature-value-name>#) || swash(<font-feature-value-name>) || ornaments(<font-feature-value-name>) || annotation(<font-feature-value-name>) ] || [ <numeric-figure-values> || <numeric-spacing-values> || <numeric-fraction-values> || ordinal || slashed-zero ] || [ <east-asian-variant-values> || <east-asian-width-values> || ruby ] || [ sub | super ] || [ text | emoji | unicode ] ]

The definition in css-fonts-4

The measurements

12 examples: eight render differently and come first, three match Chrome and one is not decided. Each is one declaration on a small page, drawn by Chrome and by our engine. Drag on a picture to move the line between them.

font-variant:all-small-caps

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome5,594
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:all-petite-caps

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome5,917
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:super

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome18,530
The same, on the page without the declaration4,691
Largest difference on one colour channel238 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:unicase

parsed, no effect
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome5,346
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

Our page is the same with and without the declaration; Chrome’s page changes.

The example’s page

font-variant:small-caps

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome6,073
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:petite-caps

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome6,238
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:emoji

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome5,569
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:sub

renders differently
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome21,348
The same, on the page without the declaration4,691
Largest difference on one colour channel238 of 255
The same, on the page without the declaration221 of 255

The declaration takes effect differently from Chrome: the difference map shows where.

The example’s page

font-variant:ordinal

not decided
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome5,247
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The pages differ by 5,247 pixels with the declaration and by 4,691 without it: a little more, but within the difference the text already makes, so the measurement does not decide this example.

The example’s page

font-variant:diagonal-fractions

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome4,571
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The pages differ by 4,571 pixels with the declaration and by 4,691 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

font-variant:proportional-nums

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome4,606
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The pages differ by 4,606 pixels with the declaration and by 4,691 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

font-variant:no-common-ligatures

same effect as Chrome
Chrome rendering
Ours rendering
Left of the line is ours, right of it Chrome’s rendering. Drag on the picture to move the line.
Pixels that differ from Chrome4,426
The same, on the page without the declaration4,691
Largest difference on one colour channel221 of 255
The same, on the page without the declaration221 of 255

The pages differ by 4,426 pixels with the declaration and by 4,691 without it: what differs is there before the property (mostly the fonts), and the declaration does not add to it.

The example’s page

Which values were measured

A match on one example means a match at the value tried. The property’s grammar has 39 branches, and 12 of them carry a measurement. At most 12 examples are published per property, so a branch past that is left out by our choice.

ValueMeasured
common-ligaturesnot measured
no-common-ligatures
same effect as Chrome
discretionary-ligaturesnot measured
no-discretionary-ligaturesnot measured
historical-ligaturesnot measured
no-historical-ligaturesnot measured
contextualnot measured
no-contextualnot measured
small-caps
renders differently
all-small-caps
renders differently
petite-caps
renders differently
all-petite-caps
renders differently
unicase
parsed, no effect
titling-capsnot measured
historical-formsnot measured
lining-numsnot measured
oldstyle-numsnot measured
proportional-nums
same effect as Chrome
tabular-numsnot measured
diagonal-fractions
same effect as Chrome
stacked-fractionsnot measured
ordinal
not decided
slashed-zeronot measured
jis78not measured
jis83not measured
jis90not measured
jis04not measured
simplifiednot measured
traditionalnot measured
full-widthnot measured
proportional-widthnot measured
rubynot measured
sub
renders differently
super
renders differently
textnot measured
emoji
renders differently
unicodenot measured
normalnot measured
nonenot measured

Measured against Chrome 148.0.7778.96 on 5 November 2026, with up to 40 candidate values tried per property. How it was measured