← v158/offlineaudiocontext-incremental-rendering · conformance
critique · rev 1
v158/offlineaudiocontext-incremental-rendering
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | minor | OfflineAudioContext + OfflineAudioContextOptions IDL quoted verbatim from the Web Audio API 1.1 Editor's Draft (fetched 2026-11-22). Chromium offline_audio_context.idl / offline_audio_context_options.idl / offline_audio_context.cc read for overloads, runtime flag gating, CalculateEffectiveChunkSize, error messages and close() rejection of pending renders. WPT offlineaudiocontext-incremental-rendering.html and offlineaudiocontext-close.html read for asserted behavior (rounding, trimming, running-between-chunks, suspend-at-boundary, AbortError on close, no complete event on close). Flag OfflineAudioContextIncrementalRendering status:stable confirmed in runtime_enabled_features.json5. |
| milestone-mapping | 5/5 | info | Feature 5109900936085504 present in the milestone=158 listing under 'Enabled by default' with listing name 'OfflineAudioContext incremental rendering' (fetched 2026-11-22); slug offlineaudiocontext-incremental-rendering derived from the listing name. Detail record milestones desktop/android/webview 158, ios null used only for the at-a-glance row. |
| completeness | 4/5 | info | Inventory = every surface changed by spec PR #2675 / the Chromium flag: startRendering(chunkSize), close(), OfflineAudioContextOptions.length (nullable), OfflineAudioContext.length (nullable). Three stable child routes (start-rendering/, close/, indefinite-length/) each cover syntax, parameters, return value, exceptions, requirements, lifecycle, examples, compatibility, security/privacy. reference-contract.json maps all 4 items x 9 dimensions; validate-artifacts PASS. |
| explanation-quality | 4/5 | info | Overview gives the committed/rendered-frames model, a chunk-length resolution table (finite vs null length x chunkSize given/omitted), memory arithmetic (2,764,800,000 bytes for two hours of 48 kHz stereo vs 3,840,000 bytes per ten-second chunk) and feature detection. The explainer's stale length: Infinity sketch is explicitly corrected (WebIDL converts Infinity to 0 -> NotSupportedError). |
| examples | 4/5 | minor | Ten gendn-derived <pre><code> snippets across overview and child pages (feature detection, finite chunked export, indefinite render with close(), pipelined queueing, rejection handling, close() cancelling queued chunks, render-until-silence, construction-time detection), all using only IDL-traced members. Live chunked-render-console showcase demo embedded on the overview. |
| browser-compat-fallbacks | 4/5 | minor | BCD api/OfflineAudioContext.json has close: chrome 158, firefox/safari false, edge/android/webview mirror; no chunkSize or nullable-length sub-feature (checked 2026-11-22) — those columns labelled interim (ChromeStatus). webstatus.dev offline-audio-context-incremental-rendering: baseline limited, chrome/chrome_android 158 (2026-11-17). Fallback documented: one-shot startRendering() is Baseline widely available; extra arg silently ignored on old builds; detect via 'close' in OfflineAudioContext.prototype. |
| links-validity | 4/5 | minor | Every citation label is a direct link (spec anchors verified present in the fetched ED: dom-offlineaudiocontext-startrendering/close/length/suspend/resume, dom-offlineaudiocontextoptions-length, privacy-considerations, render-quantum-size). Showcase index + 4 concept routes HEAD 200 on 2026-11-22. MDN startRendering 200, MDN OfflineAudioContext/close 404. |
| accessibility | 4/5 | info | Single h1 per page; heading order h2 > h3; every data table has a caption or aria label and thead/th scope; scrollable table wrappers are focusable role=region with accessible names; pre blocks are focusable (tabindex=0) for keyboard scrolling; iframe has a descriptive title. Conformance suite 19/25 pass, 0 fail (6 manual-evidenced). |
| responsive-ux | 4/5 | info | Headless Chrome 1280 and 360 full-page captures of all four routes read: initial 360px pass showed mid-word H1 breaks and crushed 3-column tables; fixed with <wbr> word-boundary hints and legible cell min-widths with in-wrapper scrolling. deno task responsive: desktop ok, mobile ok; no-horizontal-overflow-desktop/mobile assertions pass. |
| showcase-demo-relationship | 5/5 | info | Embeds https://chrome-platform-showcase.paulkinlan-ea.deno.net/v158/offlineaudiocontext-incremental-rendering/chunked-render-console/ (HEAD 200; rendered inside the iframe in the 1280px capture) with the mandatory sandbox='allow-scripts allow-same-origin' + referrerpolicy='strict-origin-when-cross-origin'; sibling concepts lifecycle-and-close, memory-math, wav-export-pipeline linked; conformance.json cpsFeature references the CPS conformance route rather than forking platform assertions. |
modern-web-guidance consulted
- responsive reference documentation tables without horizontal overflow on mobile — Semantic table headers; wrap tables in an overflow:auto wrapper with tabindex=0, role=region and an accessible name (aria-labelledby a caption); keep cell text legible rather than letting columns shrink below legibility. (Applied: every table is in .table-wrap with tabindex=0 role=region + aria-labelledby/aria-label, has a caption or label, uses thead/th; cells get a 5.5rem min-inline-size and 3+-column tables a 36rem min so they scroll inside the wrapper at 360px instead of breaking words. Exception: no sticky headers / container-query stacking — these are short reference tables.)
- lazy loaded cross-origin iframe embed sandbox performance — Control whether third-party requests send referrer URLs. (Applied: the showcase iframe carries referrerpolicy='strict-origin-when-cross-origin' and the repo-mandated sandbox pair; loading='lazy' defers the below-the-fold embed.)
- accessible code blocks pre code horizontal scroll focusable — Use semantic HTML and ensure scrollable regions are keyboard reachable. (Applied: code samples use <pre tabindex=0><code>; pre has overflow-x:auto so long IDL lines scroll inside the block; long member-name headings use <wbr> at word boundaries instead of breaking mid-identifier.)
open questions
- Does the current Web Audio ED intend the 'fire complete' step to run after every chunk of a finite render (as the text reads) or only at the end (as Chromium does)? A spec issue may be warranted.
- Does the ED's round-up-after-remaining step intend to allow a final chunk longer than length? Chromium and WPT trim; the text does not.
- Edge's version for chunkSize / nullable length is not separately recorded (BCD only mirrors close()).
- Whether Firefox/Safari throw TypeError for a missing length was inferred from the Web Audio 1.0 IDL, not tested.
follow-up goals
- [low · targeted-fix] When BCD adds sub-features for startRendering chunkSize / nullable OfflineAudioContextOptions.length, replace the interim ChromeStatus cells in the compat tables (targeted fix).
- [medium · targeted-fix] Re-check the two documented spec-vs-Chromium divergences (complete-event timing, final-chunk rounding) against the Web Audio ED and update the notes if the spec text is clarified.