Weekly

Native DOM bindings and media goals close

V8 and QuickJS now use native DOM bindings by default. Video decoding, playback and Web Audio reached their scoped media milestones, with further rendering and Service Worker tests added.

Overview

Three goals reached their end state this week. The js-dom goal closed: V8 and QuickJS native DOM bindings were both turned on by default, the ZW_NATIVE_DOM kill-switch was removed so native bindings are the only production path on either engine, an eight-criterion verification matrix checked out, and the goal was archived as Done.

The three media goals finished the same day: video decoding landed for AV1 (dav1d) and H.264 mp4 with AAC audio, A/V sync and a playback pump made <video> actually play in the browser, Web Audio reached a 100% pass rate on its headless-importable WPT surface, and the HTMLMediaElement suite finished at 98.01%. All three were archived.

Rendering compatibility advanced about 200 rounds (R3818–R4073), moving the upstream reftest corpus from 14,006 to 14,481 of 16,814 (86.1%); inline SVG paint became a default-on path by user decision. Service Worker tests kept landing (core runner 63 cases / 234 subtests, fetch/message 30/75, CacheStorage 25/318, all passing). The weekly WPT trend run put the upstream reftest suite at 87.3% (14,204/16,269), up from 81.5% a month ago.

CI ran eleven patrol rounds; the windows-aarch64 clippy environment failure hit its 33rd consecutive round, and the benchmark gate is green again after the 7763 runner baseline was re-captured.

Completed

  • js-dom closure: M5 (V8) and M7 (QuickJS) native DOM bindings were flipped on by default, then the ZW_NATIVE_DOM kill-switch was deleted outright. Native bindings are the only production path under both engines; an A/B comparison came out bitwise-identical, and multi-process page JS workers were wired to the same bindings. The R385 verification matrix confirmed all eight Done Criteria, the goal entry moved to Done, and everything was archived.

    Earlier in the week the goal had also landed its pending-apply slices (pa2 apply generation token, pa3 sel-domain fused innerHTML), parse-backlog MutationObserver replay, dynamic classic script execution on appendChild, and a final sweep at 55,808 passes with 11 known-fail files.

  • Media: media-playback shipped AV1 decoding via dav1d with codec auto-routing, then H.264 mp4 in two slices with an AAC audio chain and precise seek.

    A/V sync uses the audio clock as master, and a renderer playback pump gates on is_any_playing. media-audio built the AudioSink trait (NullSink for headless runs, CpalSink for real devices), an audio-clock-master mixer bus, and a minimal AudioContext line approved by RFC; the WPT webaudio imports went from zero to 50 cases / 1,418 subtests at 100%. media-elements cleared its M3 import backlog to 640P/0F/13PF = 98.01% with Fail/Timeout at zero, covering TextTrack/WebVTT, resource selection, seekable/buffered TimeRanges, loop/played, playbackRate and canPlayType tables.

    All three goals passed their DC audits and were archived on 09-05.

  • Rendering compatibility ran R3818–R4073, about 200 rounds, moving the corpus from 14,006 to 14,481 of 16,814 (86.1%). The inline SVG paint kill-switch was removed by user decision (R3991), after six svg-transform rounds (transform-origin 81/81, stylesheet cascade, presentational hints).

    The bigger single rounds: atomic inline baseline vertical margins (+69, clearing 68 flex cases), abspos height content keywords (+28), bidi-override run reversal and RTL static-position mirrors, CSS counters with document-order simulation and 15 CJK/Japanese/Korean styles, border-image gradient 9-slice, run-in display merging, contain:size content measurement suppression (+10), nbsp line-box struts (+9), backface-visibility (+14), and overflow:clip single-axis semantics (+5).

    Twenty-five fix attempts measured net-negative and were reverted with written diagnoses.

  • Service Worker promotions: 35 WPT cases across lifecycle, fetch interception and CacheStorage. Runners now stand at core 63 cases / 234 subtests, fetch/message 30 / 75, CacheStorage 25 / 318, all passing and double-run deterministic. SW fetch responses expose a real body stream, and module/dynamic-import and historical FetchEvent baselines landed.

  • Measurement: eleven CI-GUARD rounds (13th–23rd). The benchmark platform-drift question closed after the approved 7763 baseline re-capture, and the gate has stayed green since (113/113 on the 9v74 round). The windows-aarch64 ring/clang clippy failure was recorded for the 33rd consecutive round as pre-existing infrastructure. The weekly WPT trend entry (09-05) recorded 14,204/16,269 = 87.3% upstream reftest pass rate; perf baselines and trends were auto-tightened and committed daily.

In progress

Rendering-compat keeps running its re-clustering loop, and the ledger is long: about 140 residual css-sizing cases (aspect-ratio/abspos clusters awaiting grouping), 62 in css-contain, plus the user-gated deep batches (IFC overflow placement, Phase A IFC unification, R109 box-tree lineage) and scroll-domain work. The goal's own bar is 95% upstream reftest; it sits at 86.1%. With js-dom and the three media goals closed, the renderer stream is now the main line.

CI carries two standing items: the windows-aarch64 ring/clang environment failure (33 rounds, infra-owned) and the physical-GPU memory retest, which still has no machine assigned.

Sources