Tested against the standards
679,730 tests pass across 35 conformance suites. Every suite is below, with what fails and why, because a count without its failures isn't worth much.
These counts are conformance/baseline.json on Parsec's main branch, read when this page was built. It last changed on 25 November 2026. A release can't ship if any suite passes fewer cases or fails more than this, and every pull request shows its own counts against it. Skipped means the case can't run here at all, and each note says why.
HTML
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
Serializerhtml5lib-serializer | html5lib-tests | 229 | 0 | 1 |
Tokenizerhtml5lib-tokenizer | html5lib-tests | 7,042 | 0 | 4 |
Tokenizer, parse errorshtml5lib-tokenizer-errors | html5lib-tests | 7,042 | 0 | 4 |
Tree constructionhtml5lib-tree-construction | web-platform-tests, html/syntax/parsing | 3,898 | 0 | 6 |
Tree construction, number of parse errorshtml5lib-tree-construction-error-counts | web-platform-tests, html/syntax/parsing | 1,802 | 165 | 6 |
Tree construction, errors by the spec’s names and positionhtml5lib-tree-construction-new-errors | web-platform-tests, html/syntax/parsing | 336 | 0 | 6 |
Declarative shadow DOMwpt-declarative-shadow-dom | web-platform-tests, shadow-dom | 7,590 | 0 | 0 |
- Tokenizer. The 4 skipped cases are lone surrogates, which a Rust string can’t hold.
- Tokenizer, parse errors. The same 4 lone surrogates.
- Tree construction. The 6 skipped cases run script during the parse, with document.write, which needs a JavaScript engine. Parsec doesn’t run scripts.
- Tree construction, number of parse errors. Each case’s error list was written for whichever older parser it came from, in that parser’s names, so only the number of errors is compared. In 165 cases the number differs.
- Tree construction, errors by the spec’s names and position. The same 6 scripted cases are skipped.
Selectors
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
CSS selectors, static caseswpt-css-selectors | web-platform-tests, css/selectors | 476 | 0 | 653 |
querySelectorAll, matches and closestwpt-dom-selectors | web-platform-tests, dom/nodes | 1,719 | 0 | 8 |
- CSS selectors, static cases. The skipped cases need a browser to run. Only the ones a static page can decide are run here.
XPath
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
XPath over documentslibxml2-xpath-documents | libxml2’s XPath tests | 84 | 0 | 0 |
CSS
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
Syntax and colourscss-parsing-tests | CourtBouillon/css-parsing-tests | 5,096 | 3,270 | 0 |
Unicode rangescss-parsing-tests-urange | servo/rust-cssparser | 12 | 0 | 0 |
Tokenizercss-tokenizer-tests | romainmenke/css-tokenizer-tests | 287 | 0 | 0 |
Cascade, at-rules and pseudo-elementswpt-cascade | web-platform-tests, css/css-cascade and others | 1,343 | 131 | 199 |
Computed valueswpt-computed-values | web-platform-tests, css/*/parsing and inheritance | 11,356 | 755 | 355 |
Property valueswpt-css-parsing | web-platform-tests, css/*/parsing | 14,758 | 135 | 129 |
Media querieswpt-media-queries | web-platform-tests, css/mediaqueries | 1,370 | 0 | 14 |
- Syntax and colours. The suite was written for older drafts. Nearly every failure is a colour case where CSS Color has changed since, most of them the current draft clamping lightness and chroma when it parses them. The runner sorts each failure into one of the known changes, and any other failure fails the run.
- Cascade, at-rules and pseudo-elements. Most failures are style() container queries, shadow DOM and container query units.
- Computed values. Most failures need layout, which Parsec doesn’t do: grid tracks as sizes, origins and percentages as pixels. The rest are properties whose computed form isn’t written yet, and colour edge cases.
- Property values. Every failure is listed, with its reason, and the run fails if anything else fails. Most are shorthands, and values the current drafts don’t have or rule out. The skipped ones need a DOM or computed values.
JavaScript
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
Parsing, early errors includedtest262-parse | tc39/test262 | 52,782 | 0 | 1,313 |
- Parsing, early errors included. The skipped files are module fixtures, which aren’t tests on their own, and files using syntax newer than ECMAScript 2025.
XML
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
W3C XML Conformance Test Suitexmlconf | W3C | 1,915 | 0 | 670 |
- W3C XML Conformance Test Suite. Skipped: XML 1.1 and Namespaces 1.1 cases, cases for editions before XML 1.0’s fifth, error cases a processor may report or not, and malformed documents whose fault is in an external entity, which Parsec never reads.
URL
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
Unicode normalizationunicode-normalization | Unicode 18.0 NormalizationTest.txt | 20,172 | 0 | 0 |
IDNAwpt-url-idna | web-platform-tests, url | 2,675 | 0 | 1 |
IDNA, removed caseswpt-url-idna-removed | web-platform-tests, url | 20 | 0 | 0 |
Originswpt-url-origin | web-platform-tests, url | 421 | 0 | 0 |
Parsingwpt-url-parsing | web-platform-tests, url | 904 | 0 | 0 |
Setterswpt-url-setters | web-platform-tests, url | 284 | 0 | 0 |
ToASCIIwpt-url-toascii | web-platform-tests, url | 261 | 0 | 522 |
- IDNA. The one skipped case is an empty input, which can’t go through the URL constructor.
- ToASCII. The skipped halves test the <a> and <area> elements, not URL parsing.
Encoding
| Suite | Data | Pass | Fail | Skipped |
|---|---|---|---|---|
Encoder round trips over the same pagesencoding-legacy-multi-byte-encoder | web-platform-tests, encoding | 53,813 | 0 | 0 |
Encoding sniffinghtml5lib-encoding | html5lib-tests | 82 | 0 | 1 |
html5lib pages cut into piecesstreaming-html5lib-encoding | html5lib-tests | 369,396 | 0 | 0 |
web-platform-tests pages cut into piecesstreaming-wpt-legacy-multi-byte | web-platform-tests, encoding | 49,422 | 0 | 0 |
GB18030 and GBKwpt-encoding-gb18030 | web-platform-tests, encoding | 357 | 0 | 0 |
ISO-2022-JPwpt-encoding-iso-2022-jp | web-platform-tests, encoding | 38 | 0 | 0 |
Encoding labelswpt-encoding-labels | web-platform-tests, encoding | 228 | 0 | 0 |
Legacy multi-byte pageswpt-encoding-legacy-multi-byte | web-platform-tests, encoding | 62,352 | 0 | 0 |
Single-byte decoderswpt-encoding-single-byte | web-platform-tests, encoding | 168 | 0 | 0 |
Run them yourself
Every suite runs in cargo test, the same way CI runs them. The W3C XML suite isn't in the repository, so a script fetches its pinned release first. With CONFORMANCE_DIR set, each suite writes its counts to a file, and the gate script compares them with the baseline the way a release does:
git clone --recurse-submodules https://github.com/parsec-html/parsec
cd parsec
crates/parsec-xml/scripts/fetch-xmlconf.sh
export CONFORMANCE_DIR="$PWD/target/conformance"
cargo test --workspace
cargo test -p parsec-xml --features xpath
scripts/conformance-gate.sh conformance/baseline.json "$CONFORMANCE_DIR"The Conformance page in the docs pins the commit of every suite's data and breaks each failure down further.