Test coverage: @font-face descriptor × use-site CSS

One font, one glyph under test: real Cairo (slnt −11..11), subset to the letters of OBLIQUE, tested on the capital I. Columns (A, B, C…) are what the @font-face declares; rows (1, 2, 3…) are the CSS at the use site, and a cell is its column letter plus its row number. What each cell should do is not decided by hand: an independent JavaScript implementation of CSS Fonts 4 font-style matching (reference/) computes it, and never uses a browser to do so. Every cell states what the reference expects. Where the spec pins the outcome down (“spec: slnt −11”) the cell is a WPT test for that one rendering. Where it allows several outcomes (“spec*: slnt 0 / synth”) a test can only forbid some of them, so an engine can pass and still render something different from the others: that is an interop problem, and the cell is amber. Where nothing testable is excluded, the cell is only measured. font-synthesis is left at its default in rows 1 to 7, since synthesis should apply only when a face is missing; rows 8 and 9 set it on purpose. Each specimen is live in your browser: pink is a rendering the spec accepts, cyan is the CSS under test; aligned they merge into dark blue, and visible pink is a failure. The circles are recorded results: Chromium and Firefox from wpt run, Safari from a direct safaridriver replay (wpt run proved unreliable on Safari). Candidate for upstreaming; no WPT PR has been opened.

54 cells: 42 interoperable (all three engines render the same allowed thing) · 6 failing (A2, C2, A3, C3, A6, C6: an engine renders what the spec forbids) · 6 diverging (F2, E4, E5, E6, E7, F8: the spec allows several outcomes and the engines chose differently). 2 cells have no WPT test and are only measured.

@font-face {
  font-family: "Oblique Test";
  src: url(Cairo.var.subset.ttf);  /* real Cairo, slnt -11..11, wght 200..1000 */
  font-style: <column>;
}
AThe font's own range@font-face { font-style: oblique -11deg 11deg; }Declared oblique with the font's true slnt rangeBPast the break-point@font-face { font-style: oblique -14deg 14deg; }Declared oblique past CSS's 14deg break-point: the smallest range that reaches beyond the font's own limit (11) and still contains every angle CSS can imply (14deg for bare oblique, 11deg for italic). Ranges are inclusive, so rows 2, 3 and 6 probe the boundary exactly.CNarrow, one-sided range@font-face { font-style: oblique 0deg 10deg; }Declared oblique, inside the font's range and excluding the negative side (the pattern of Inter's slnt -10..0)DBare oblique@font-face { font-style: oblique; }Declared oblique, no range (14deg)ENormal@font-face { font-style: normal; }Declared uprightFAuto@font-face { font-style: auto /* or omitted */ }Descriptor omitted = auto, the initial value. Selected as if normal, but not clamped, so the font's own slnt range applies
1 font-style: normal;A1
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
B1
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
C1
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
D1
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E1
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
F1
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
2 font-style: italic;A2
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11 + synth
slnt -11
synth ~14°
B2
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
C2
OBLIQUEOBLIQUE
spec: slnt -10
slnt -10 + synth
slnt -10
synth ~14°
D2
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E2
OBLIQUE
spec*: slnt 0 / synth
synth ~14°
F2
OBLIQUE
spec*: slnt 0 / -11 / synth
slnt -11
slnt -11
slnt 0
3 font-style: oblique;A3
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11 + synth
slnt -11
slnt -11 + synth
B3
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
C3
OBLIQUEOBLIQUE
spec: slnt -10
slnt -10 + synth
slnt -10
slnt -10 + synth
D3
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E3
OBLIQUE
spec*: slnt 0 / synth
synth ~14°
F3
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
4 font-style: oblique 11deg;A4
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
B4
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
C4
OBLIQUEOBLIQUE
spec: slnt -10
slnt -10
D4
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E4
OBLIQUE
spec*: slnt 0 / synth
slnt 0
synth ~10°
slnt 0
F4
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
5 font-style: oblique 5deg;A5
OBLIQUEOBLIQUE
spec: slnt -5
slnt -5
B5
OBLIQUEOBLIQUE
spec: slnt -5
slnt -5
C5
OBLIQUEOBLIQUE
spec: slnt -5
slnt -5
D5
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E5
OBLIQUE
spec*: slnt 0 / synth
slnt 0
synth ~5°
slnt 0
F5
OBLIQUEOBLIQUE
spec: slnt -5
slnt -5
6 font-style: oblique 45deg;A6
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11 + synth
slnt -11
slnt -11 + synth
B6
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
C6
OBLIQUEOBLIQUE
spec: slnt -10
slnt -10 + synth
slnt -10
slnt -10 + synth
D6
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E6
OBLIQUE
spec*: slnt 0 / synth
synth ~14°
synth ~43°
synth ~14°
F6
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
7 font-style: oblique -5deg;A7
OBLIQUEOBLIQUE
spec: slnt 5
slnt 5
B7
OBLIQUEOBLIQUE
spec: slnt 5
slnt 5
C7
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
D7
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E7
OBLIQUE
spec*: slnt 0 / synth
slnt 0
synth ~-5°
slnt 0
F7
OBLIQUEOBLIQUE
spec: slnt 5
slnt 5
8 font-style: italic;
font-synthesis-style: none;
A8
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
B8
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
C8
OBLIQUEOBLIQUE
spec: slnt -10
slnt -10
D8
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E8
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
F8
OBLIQUE
spec*: slnt 0 / -11
slnt -11
slnt -11
slnt 0
9 font-style: oblique;
font-synthesis: none;
A9
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
B9
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
C9
OBLIQUEOBLIQUE
spec: slnt -10
slnt -10
D9
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11
E9
OBLIQUEOBLIQUE
spec: slnt 0
slnt 0
F9
OBLIQUEOBLIQUE
spec: slnt -11
slnt -11

Results

Per @font-face descriptor; open a row for the cells behind it. Every column counts the same items: each cell, and each of the two standalone tests in group Z. An engine column counts where that engine renders an allowed outcome, which a loose WPT test can pass (a cell with no test, where nothing can fail, counts when the engine rendered anything). Interop is stricter: it counts an item only when all three engines render the same allowed thing, so where the spec allows several outcomes and the engines chose differently, it does not count.

Description
Chromium
Firefox
Safari
Interop
A The font's own range @font-face { font-style: oblique -11deg 11deg; }
6 / 9
9 / 9
6 / 9
6 / 9
A1 font-style: normal; spec: slnt 0
pass
pass
pass
same
A2 font-style: italic; spec: slnt -11
failslnt -11 + synth
pass
failsynth ~14°
fail
A3 font-style: oblique; spec: slnt -11
failslnt -11 + synth
pass
failslnt -11 + synth
fail
A4 font-style: oblique 11deg; spec: slnt -11
pass
pass
pass
same
A5 font-style: oblique 5deg; spec: slnt -5
pass
pass
pass
same
A6 font-style: oblique 45deg; spec: slnt -11
failslnt -11 + synth
pass
failslnt -11 + synth
fail
A7 font-style: oblique -5deg; spec: slnt 5
pass
pass
pass
same
A8 font-style: italic; font-synthesis-style: none; spec: slnt -11
pass
pass
pass
same
A9 font-style: oblique; font-synthesis: none; spec: slnt -11
pass
pass
pass
same
B Past the break-point @font-face { font-style: oblique -14deg 14deg; }
9 / 9
9 / 9
9 / 9
9 / 9
B1 font-style: normal; spec: slnt 0
pass
pass
pass
same
B2 font-style: italic; spec: slnt -11
pass
pass
pass
same
B3 font-style: oblique; spec: slnt -11
pass
pass
pass
same
B4 font-style: oblique 11deg; spec: slnt -11
pass
pass
pass
same
B5 font-style: oblique 5deg; spec: slnt -5
pass
pass
pass
same
B6 font-style: oblique 45deg; spec: slnt -11
pass
pass
pass
same
B7 font-style: oblique -5deg; spec: slnt 5
pass
pass
pass
same
B8 font-style: italic; font-synthesis-style: none; spec: slnt -11
pass
pass
pass
same
B9 font-style: oblique; font-synthesis: none; spec: slnt -11
pass
pass
pass
same
C Narrow, one-sided range @font-face { font-style: oblique 0deg 10deg; }
6 / 9
9 / 9
6 / 9
6 / 9
C1 font-style: normal; spec: slnt 0
pass
pass
pass
same
C2 font-style: italic; spec: slnt -10
failslnt -10 + synth
pass
failsynth ~14°
fail
C3 font-style: oblique; spec: slnt -10
failslnt -10 + synth
pass
failslnt -10 + synth
fail
C4 font-style: oblique 11deg; spec: slnt -10
pass
pass
pass
same
C5 font-style: oblique 5deg; spec: slnt -5
pass
pass
pass
same
C6 font-style: oblique 45deg; spec: slnt -10
failslnt -10 + synth
pass
failslnt -10 + synth
fail
C7 font-style: oblique -5deg; spec: slnt 0
pass
pass
pass
same
C8 font-style: italic; font-synthesis-style: none; spec: slnt -10
pass
pass
pass
same
C9 font-style: oblique; font-synthesis: none; spec: slnt -10
pass
pass
pass
same
D Bare oblique @font-face { font-style: oblique; }
9 / 9
9 / 9
9 / 9
9 / 9
D1 font-style: normal; spec: slnt -11
pass
pass
pass
same
D2 font-style: italic; spec: slnt -11
pass
pass
pass
same
D3 font-style: oblique; spec: slnt -11
pass
pass
pass
same
D4 font-style: oblique 11deg; spec: slnt -11
pass
pass
pass
same
D5 font-style: oblique 5deg; spec: slnt -11
pass
pass
pass
same
D6 font-style: oblique 45deg; spec: slnt -11
pass
pass
pass
same
D7 font-style: oblique -5deg; spec: slnt -11
pass
pass
pass
same
D8 font-style: italic; font-synthesis-style: none; spec: slnt -11
pass
pass
pass
same
D9 font-style: oblique; font-synthesis: none; spec: slnt -11
pass
pass
pass
same
E Normal @font-face { font-style: normal; }
9 / 9
9 / 9
9 / 9
5 / 9
E1 font-style: normal; spec: slnt 0
pass
pass
pass
same
E2 font-style: italic; spec*: slnt 0 / synth
pass
pass
pass
same
E3 font-style: oblique; spec*: slnt 0 / synth
pass
pass
pass
same
E4 font-style: oblique 11deg; spec*: slnt 0 / synth
passslnt 0
passsynth ~10°
passslnt 0
differs
E5 font-style: oblique 5deg; spec*: slnt 0 / synth
passslnt 0
passsynth ~5°
passslnt 0
differs
E6 font-style: oblique 45deg; spec*: slnt 0 / synth
passsynth ~14°
passsynth ~43°
passsynth ~14°
differs
E7 font-style: oblique -5deg; spec*: slnt 0 / synth
passslnt 0
passsynth ~-5°
passslnt 0
differs
E8 font-style: italic; font-synthesis-style: none; spec: slnt 0
pass
pass
pass
same
E9 font-style: oblique; font-synthesis: none; spec: slnt 0
pass
pass
pass
same
F Auto @font-face { font-style: auto /* or omitted */ }
9 / 9
9 / 9
9 / 9
7 / 9
F1 font-style: normal; spec: slnt 0
pass
pass
pass
same
F2 font-style: italic; spec*: slnt 0 / -11 / synth no test
allowedslnt -11
allowedslnt -11
allowedslnt 0
differs
F3 font-style: oblique; spec: slnt -11
pass
pass
pass
same
F4 font-style: oblique 11deg; spec: slnt -11
pass
pass
pass
same
F5 font-style: oblique 5deg; spec: slnt -5
pass
pass
pass
same
F6 font-style: oblique 45deg; spec: slnt -11
pass
pass
pass
same
F7 font-style: oblique -5deg; spec: slnt 5
pass
pass
pass
same
F8 font-style: italic; font-synthesis-style: none; spec*: slnt 0 / -11 no test
allowedslnt -11
allowedslnt -11
allowedslnt 0
differs
F9 font-style: oblique; font-synthesis: none; spec: slnt -11
pass
pass
pass
same
Z Standalone tests hand-written, not cells of the grid
2 / 2
2 / 2
2 / 2
2 / 2
Z1 font-style: auto renders exactly like an omitted descriptor
pass
pass
pass
same
Z2 normal against a backslant-only face (oblique -20deg -5deg) falls back to slnt 5
pass
pass
pass
same
Total
50 / 56 · 89%
56 / 56 · 100%
50 / 56 · 89%
44 / 56 · 79%

Cells A2, A3, A6 and C2, C3, C6 (italic, bare oblique and oblique 45deg against a face declared oblique -11deg 11deg or 0deg 10deg, default synthesis): the axis must clamp and nothing may be synthesized on top. Firefox does that. Chrome stacks a synthetic skew on the axis (36px lean, expected 16px). Safari stacks for bare oblique and oblique 45deg, and gives a pure synthetic skew, no axis at all, for italic. Rows 8 and 9 repeat rows 2 and 3 with synthesis off and pass everywhere, so the failure is the extra skew and nothing else. A range wider than the font's own (column B, -20deg 20deg) passes all nine rows in all three engines.