Skip to content

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

SuiteDataPassFailSkipped
Serializer
html5lib-serializer
html5lib-tests22901
Tokenizer
html5lib-tokenizer
html5lib-tests7,04204
Tokenizer, parse errors
html5lib-tokenizer-errors
html5lib-tests7,04204
Tree construction
html5lib-tree-construction
web-platform-tests, html/syntax/parsing3,89806
Tree construction, number of parse errors
html5lib-tree-construction-error-counts
web-platform-tests, html/syntax/parsing1,8021656
Tree construction, errors by the spec’s names and position
html5lib-tree-construction-new-errors
web-platform-tests, html/syntax/parsing33606
Declarative shadow DOM
wpt-declarative-shadow-dom
web-platform-tests, shadow-dom7,59000
  • 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

SuiteDataPassFailSkipped
CSS selectors, static cases
wpt-css-selectors
web-platform-tests, css/selectors4760653
querySelectorAll, matches and closest
wpt-dom-selectors
web-platform-tests, dom/nodes1,71908
  • CSS selectors, static cases. The skipped cases need a browser to run. Only the ones a static page can decide are run here.

XPath

SuiteDataPassFailSkipped
XPath over documents
libxml2-xpath-documents
libxml2’s XPath tests8400

CSS

SuiteDataPassFailSkipped
Syntax and colours
css-parsing-tests
CourtBouillon/css-parsing-tests5,0963,2700
Unicode ranges
css-parsing-tests-urange
servo/rust-cssparser1200
Tokenizer
css-tokenizer-tests
romainmenke/css-tokenizer-tests28700
Cascade, at-rules and pseudo-elements
wpt-cascade
web-platform-tests, css/css-cascade and others1,343131199
Computed values
wpt-computed-values
web-platform-tests, css/*/parsing and inheritance11,356755355
Property values
wpt-css-parsing
web-platform-tests, css/*/parsing14,758135129
Media queries
wpt-media-queries
web-platform-tests, css/mediaqueries1,370014
  • 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

SuiteDataPassFailSkipped
Parsing, early errors included
test262-parse
tc39/test26252,78201,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

SuiteDataPassFailSkipped
W3C XML Conformance Test Suite
xmlconf
W3C1,9150670
  • 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

SuiteDataPassFailSkipped
Unicode normalization
unicode-normalization
Unicode 18.0 NormalizationTest.txt20,17200
IDNA
wpt-url-idna
web-platform-tests, url2,67501
IDNA, removed cases
wpt-url-idna-removed
web-platform-tests, url2000
Origins
wpt-url-origin
web-platform-tests, url42100
Parsing
wpt-url-parsing
web-platform-tests, url90400
Setters
wpt-url-setters
web-platform-tests, url28400
ToASCII
wpt-url-toascii
web-platform-tests, url2610522
  • 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

SuiteDataPassFailSkipped
Encoder round trips over the same pages
encoding-legacy-multi-byte-encoder
web-platform-tests, encoding53,81300
Encoding sniffing
html5lib-encoding
html5lib-tests8201
html5lib pages cut into pieces
streaming-html5lib-encoding
html5lib-tests369,39600
web-platform-tests pages cut into pieces
streaming-wpt-legacy-multi-byte
web-platform-tests, encoding49,42200
GB18030 and GBK
wpt-encoding-gb18030
web-platform-tests, encoding35700
ISO-2022-JP
wpt-encoding-iso-2022-jp
web-platform-tests, encoding3800
Encoding labels
wpt-encoding-labels
web-platform-tests, encoding22800
Legacy multi-byte pages
wpt-encoding-legacy-multi-byte
web-platform-tests, encoding62,35200
Single-byte decoders
wpt-encoding-single-byte
web-platform-tests, encoding16800

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.