Skip to content
Skip the list of specifications

How a test is judged

Every web-platform-tests figure in this section comes from one run of the tests against our engine (the CSS properties pages are a measurement of their own, against Chrome, dated on them). This page says what a pass is for each kind of test, what is left out and why, and where to check the figures yourself.

Four kinds of test

No browser takes part: our engine renders or lays out every file itself, and the result is compared with what the test expects.

KindWhat is comparedCounted as
ReftestThe test and its reference are printed to PDF, rasterised at 96 dpi and compared pixel by pixel. A difference of 1/255 in a channel is allowed as the rasteriser’s noise, and a larger one only as anti-aliasing at an edge, on at most 1% of the pixels; any other difference must fit the allowance the test sets itself (<meta name="fuzzy">).one file, passing or failing
Layout testThe sizes and offsets the markup expects (data-expected-width, data-offset-x and the rest of what check-layout-th.js asks a browser) against our layout.one subtest per expected value (wpt.fyi counts one per element, passing when all of its values match)
Parsing testThe values parsing-testcommon.js says must be accepted or rejected, put to our parser.one subtest per assertion
Computed-value testA declaration set and read back as getComputedStyle would, against the serialization CSSOM requires (§6.7.2).one subtest per call

One file of each kind, chosen from this run when the pages are built:

  • css/css-flexbox/abspos/abspos-autopos-htb-ltr.html is a reftest. Its two renders match within the test’s allowance: one file, passing.
  • css/CSS2/normal-flow/auto-margins-used-values-with-floats.tentative.html expects 12 values. 4 of them do not match our layout: 12 subtests, 8 passing, and one failing file. One that does not: an element expects data-expected-margin-right 50, and our layout gives 30.
  • css/css-align/parsing/place-content-invalid.html makes 10 assertions and 9 hold. One that does not: place-content: first baseline first baseline must be rejected, and our parser accepts it.
  • css/css-animations/parsing/animation-duration-computed.html makes 6 calls and 5 return what CSSOM requires. One that does not: animation-duration: calc(10s + (sign(2cqw - 10px) * 5s)) must compute to 5s, and our engine returns 15s.

Files, subtests and the score

Files are the unit of this section, as Interop counts: a file passes when every subtest in it passes. This run: 27,676 of 29,323 files pass (94.4%).

Subtests are wpt.fyi’s unit, and it adds a browser’s reftests and subtests the same way. This run: 54,858 of 57,980 (94.6%). A file of ten assertions with one failing is one failing file, but nine passing subtests.

The score is Servo’s measure: a file with no subtests scores 1 or 0, a file with subtests the share of them that pass, and the score is the mean over files. This run: 94.9.

A difference beyond those allowances counts as a failure in all three, even when it disappears at a higher resolution (below, “When the difference is the rasteriser’s”). So does a rel=mismatch pair that rendered the same at 96 dpi and again at 288 dpi; a pair that differs only at 288 dpi passes, since 96 dpi cannot show a difference smaller than a pixel.

What is left out

449 files change their page with a script, which the harness does not run, so they are neither passed nor failed. 978 are left out by the rule below. 30 need what a printed page does not have: the network (24), interaction (3), scrolling (1), an animation (1) or the reader’s own style sheet (1). 18 name a reference that cannot be rendered, and one render produced no file.

Counting every one of them as failing, 27,676 of 30,799 files pass (89.9%). There is no such figure for subtests: how many a file that is not run would have reported is not known.

Every test left out, by name and reason

Which tests are judged

A test we pass is always judged: passing a test the browsers fail is evidence, and dropping it would erase that.

A test we fail is left out only when three things hold at once: fewer than three of the four browsers wpt.fyi runs pass it (Chrome, Edge, Firefox and Safari; Chrome and Edge share one engine), its specification is below Candidate Recommendation, and that specification is not a printing module (css-page, css-gcpm, css-break, css-multicol, css-paged-media). The specification is the one the test names in its <link rel="help">, not its directory: a test can sit in a printing suite’s directory and test another specification, as some in css-page and css-break test positioning or grid-lanes, and those are left out by this rule. The reason is recorded with the test (interop:N/4), in a dated file under version control.

Leaving such tests out whether we pass them or not was tried first and rejected: it removed hundreds of tests we pass in modules the browsers do not, and those modules are what a print engine is for. Whole families once left out because no browser shipped them, such as anchor positioning, are judged again: most of their tests pass in all four browsers, and judging them took the published rate down.

When the difference is the rasteriser’s

Two reftest renders can differ because of the rasteriser that turned the PDFs into pixels, not because of the layout. That is decided by a second measurement, not by a threshold: both files are rasterised again at 288 dpi and must come out identical; or, for a pair that differs by at most 1,200 pixels, a second, independent rasteriser draws both PDFs and they must come out identical. Either way the PDFs are the same, and the difference was the first rasteriser’s.

Such a test (61 in this run) is still counted as failing. What the second measurement changes is only the check against regressions: it does not report such a test as a new failure.

It never excuses a test that once matched exactly. An error before the drawing (in parsing, a computed value, the geometry) feeds both rasterisers the same wrong input, and their agreement then proves nothing. So a test that leaves an exact match counts as a regression whatever the size of the difference: that is how a gradient turned by a thousandth of a degree, from an angle kept in single precision, was caught and fixed.

Passes we count as failures

11 tests pass only because the reference loses the same thing the test does: the engine lacks the feature, both sides go without it, and they match. 39 more are rel=mismatch pairs that rendered the same at 96 dpi and at 288 dpi, which is the failure such a test is written to catch. All are counted as failures, by name. When a fix makes one of them finally differ, the figure goes down, and that is accepted: a false pass is worse than a failure.

How a change to the engine is accepted

The four kinds of test are four tiers, run against the same corpus, each with its own record of the last accepted run. A change is accepted only when no tier goes backwards; the figures of this section are the four tiers added together.

The computed-value tier sets aside what it cannot judge yet, and says so: properties whose serialization our engine does not write (382 subtests), and values CSSOM resolves to the used value rather than the computed one (§9). Neither group counts as a pass or a failure.

The data

Every figure is read from plain JSON, served from this site.

/conformance/d/manifest.jsonthe run: its figures, what is left out, the engine build
/conformance/d/facets.jsonfiles, subtests and coverage by directory
/conformance/d/rows.jsonevery reftest’s verdict
/conformance/d/assert/<directory>.jsonevery assertion of every scripted file, with what it expected and what it got

These files are rebuilt after every accepted run.

Results of the run of 8 November 2026, engine build 1d7a91105. The data behind every page is open.