# 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.

Category: Compatibility
Languages: HTML, CSS, JavaScript

## Standard evidence

Rubric v1 · 6/8 verified · 2 unknown · 0 contrary · reviewed 2026-11-28

- **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. Reviewed 2026-11-28. [Source](https://web-platform-tests.org/writing-tests/)
- **Measurement** (verified) — The runner accepts a browser and a test path, extracts outcomes and can write a machine-readable report for the selected build. Reviewed 2026-11-28. [Source](https://web-platform-tests.org/running-tests/from-local-system.html)
- **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. Reviewed 2026-11-28. [Source](https://web-platform-tests.org/)
- **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. Reviewed 2026-11-28. [Source](https://web-platform-tests.org/running-tests/from-local-system.html)
- **Real-world adoption** (verified) — Firefox imports the upstream suite and records implementation-specific expectations separately. Mozilla documents running the same tests with mach wpt. Reviewed 2026-11-28. [Source](https://firefox-source-docs.mozilla.org/web-platform/index.html)
- **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. Reviewed 2026-11-28. [Source](https://firefox-source-docs.mozilla.org/web-platform/index.html)
- **Agent portability** (unknown) — No reviewed evidence is recorded for this dimension.

## Adoption

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.

### Tool command

```
./wpt run chrome dom/historical.html
```

Seikika package: no verified installation is listed.

## References

- [Tool documentation](https://github.com/web-platform-tests/wpt)
- [Agent skill](/skills/web-platform-tests/SKILL.md)
