Skip to content
Skip the list of specifications

font-family

matches Chrome on some values: 4 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 7 that do not: font-family:system-ui, font-family:"X", font-family:flexpdf, font-family:math, font-family:ui-serif, font-family:ui-sans-serif, font-family:ui-monospace. They come first below, each with its difference map.

What the specification says

Initial valuedepends on user agent
Applies toall elements and text
Inheritedyes
Percentagesn/a
Computed valuelist, each item a string and/or <generic-font-family> keywords
Syntax[ <font-family-name> | <generic-font-family> ]#

The definition in css-fonts-4

The measurements

12 examples: seven render differently and come first, four 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-family:system-ui

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,768
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-family:"X", font-family:flexpdf, font-family:ui-sans-serif

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,584
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-family:math

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 Chrome7,659
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-family:ui-serif

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,283
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-family:ui-monospace

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 Chrome25,104
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-family:sans-serif

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

The pages differ by 5,376 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-family:monospace

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 Chrome3,256
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 3,256 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-family:serif, font-family:cursive, font-family:fantasy

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

The pages differ by 316 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 13 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
"X"
renders differently
flexpdf
renders differently
serif
same effect as Chrome
sans-serif
not decided
system-ui
renders differently
cursive
same effect as Chrome
fantasy
same effect as Chrome
math
renders differently
monospace
same effect as Chrome
ui-serif
renders differently
ui-sans-serif
renders differently
ui-monospace
renders differently
ui-roundednot 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