Skip to content
Skip the list of specifications

font

matches Chrome on some values: 10 of 12 examples match Chrome

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 2 that do not: font:xxx-large "X", font:oblique 30deg xx-small "X". They come first below, each with its difference map.

What the specification says

Initial valuesee individual properties
Applies toall elements and text
Inheritedyes
Percentagessee individual properties
Computed valuesee individual properties
Syntax[ [ <'font-style'> || <font-variant-css2> || <'font-weight'> || <font-width-css3> ]? <'font-size'> [ / <'line-height'> ]? <'font-family'># ] | <system-font-family-name>

The definition in css-fonts-4

The measurements

12 examples: two render differently and come first and ten match Chrome. 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:xxx-large "X"

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 Chrome13,786
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:oblique 30deg xx-small "X"

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 Chrome32,269
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

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

The example’s page

font:xx-small / 50% "X"

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 Chrome560
The same, on the page without the declaration4,691
Largest difference on one colour channel203 of 255
The same, on the page without the declaration221 of 255

The pages differ by 560 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:xx-small system-ui

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 Chrome404
The same, on the page without the declaration4,691
Largest difference on one colour channel135 of 255
The same, on the page without the declaration221 of 255

The pages differ by 404 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:50% "X"

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 Chrome492
The same, on the page without the declaration4,691
Largest difference on one colour channel198 of 255
The same, on the page without the declaration221 of 255

The pages differ by 492 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:xx-small sans-serif

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 Chrome368
The same, on the page without the declaration4,691
Largest difference on one colour channel132 of 255
The same, on the page without the declaration221 of 255

The pages differ by 368 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:bold xx-small "X", font:bolder xx-small "X"

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 Chrome670
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 670 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:x-small "X"

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 Chrome760
The same, on the page without the declaration4,691
Largest difference on one colour channel216 of 255
The same, on the page without the declaration221 of 255

The pages differ by 760 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:italic xx-small "X", font:oblique xx-small "X"

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 Chrome638
The same, on the page without the declaration4,691
Largest difference on one colour channel200 of 255
The same, on the page without the declaration221 of 255

The pages differ by 638 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:xx-small "X"

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 Chrome573
The same, on the page without the declaration4,691
Largest difference on one colour channel203 of 255
The same, on the page without the declaration221 of 255

The pages differ by 573 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 54 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
xx-small "X"
same effect as Chrome
normal xx-small "X"not measured
italic xx-small "X"
same effect as Chrome
left xx-small "X"not measured
right xx-small "X"not measured
oblique xx-small "X"
same effect as Chrome
oblique 30deg xx-small "X"
parsed, no effect
small-caps xx-small "X"not measured
bold xx-small "X"
same effect as Chrome
2 xx-small "X"not measured
bolder xx-small "X"
same effect as Chrome
lighter xx-small "X"not measured
ultra-condensed xx-small "X"not measured
extra-condensed xx-small "X"not measured
condensed xx-small "X"not measured
semi-condensed xx-small "X"not measured
semi-expanded xx-small "X"not measured
expanded xx-small "X"not measured
extra-expanded xx-small "X"not measured
ultra-expanded xx-small "X"not measured
x-small "X"
same effect as Chrome
small "X"not measured
medium "X"not measured
large "X"not measured
x-large "X"not measured
xx-large "X"not measured
xxx-large "X"
renders differently
larger "X"not measured
smaller "X"not measured
20px "X"not measured
50% "X"
same effect as Chrome
math "X"not measured
xx-small / 2 "X"not measured
xx-small / normal "X"not measured
xx-small / 20px "X"not measured
xx-small / 50% "X"
same effect as Chrome
xx-small flexpdfnot measured
xx-small serifnot measured
xx-small sans-serif
same effect as Chrome
xx-small system-ui
same effect as Chrome
xx-small cursivenot measured
xx-small fantasynot measured
xx-small mathnot measured
xx-small monospacenot measured
xx-small ui-serifnot measured
xx-small ui-sans-serifnot measured
xx-small ui-monospacenot measured
xx-small ui-roundednot measured
captionnot measured
iconnot measured
menunot measured
message-boxnot measured
small-captionnot measured
status-barnot 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