GS/BS
← Standards directory
Compatibility

Web Platform Tests.

Verify browser behavior against shared web tests

For a browser or web engine implementation, compare the behavior of a targeted feature with shared, specification-linked tests. Keep the browser build, precise test IDs and expected results with each run.

HTML / CSS / JavaScript

Community rubric · v1

The evidence

Evidence score6 / 8
6 verified · 2 unknown

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • Definition

    Verified

    WPT specifies the roles of programmatic assertions, reference-image comparisons, crash tests and manual tests for web-platform features. Each type has its own observable expectation.

    Inspect source ↗
  • Measurement

    Verified

    The runner accepts a browser and a test path, extracts outcomes and can write a machine-readable report for the selected build.

    Inspect source ↗
  • Conformance

    Verified

    The community maintains a shared cross-browser test suite for web-platform specifications. Implementations can compare the same observable behavior on the same test revision.

    Inspect source ↗
  • CI enforcement

    Unknown

    No reviewed evidence is recorded for this dimension.

  • Getting started

    Verified

    The guide covers local browser prerequisites and setup, then runs dom/historical.html in Chrome and describes how the runner collects the result.

    Inspect source ↗
  • Real-world adoption

    Verified

    Firefox imports the upstream suite and records implementation-specific expectations separately. Mozilla documents running the same tests with mach wpt.

    Inspect source ↗
  • Agent guidance

    Verified

    For an unexpected result, rerun the affected test ID, capture the raw log, then compare it with the browser's expectation metadata. Mozilla also explains when inconsistent reruns should be recorded as intermittent.

    Inspect source ↗
  • Agent portability

    Unknown

    No reviewed evidence is recorded for this dimension.

Use this standard

Run the check with the tool installed and configured for your project.

./wpt run chrome dom/historical.html

Agent prompt

Choose one web-platform feature whose implementation changed. Select the corresponding WPT subtree and a supported browser build. Save test IDs, expected and actual outcomes. Re-run an unexpected failure with that same binary and inspect the linked specification before proposing a fix.
Read the agent skill ↗

Primary source

Web Platform Tests documentation ↗