← v152/audiopreferred-capture-in-getdisplaymedia-api · conformance
critique · rev 1
v152/audiopreferred-capture-in-getdisplaymedia-api
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | Every signature and behavior claim traces to a fetched primary source: IDL and member/enum text quoted verbatim from the W3C Screen Capture WD 2026-07-23 (rendered, anchors verified live); Chromium member gating and flag status read from media_stream_constraints.idl and runtime_enabled_features.json5 at trunk; picker behaviors (default-checked system/window audio, recommendation banner, dynamic Share-with-Audio label, boxed toggle, getDisplayMedia-only gate) read directly out of desktop_media_picker_views.cc at trunk on 2026-07-28, cross-checked against CLs 8107082/8116406/8138688. |
| milestone-mapping | 5/5 | info | Feature id 5085785343787008 appears in the milestone=152 listing's features_by_type under 'Enabled by default' (and duplicated under 'In developer trial (Behind a flag)' — a listing quirk noted on the page); slug derived from the listing name per invariant #1; folder v152/audiopreferred-capture-in-getdisplaymedia-api/. |
| completeness | 5/5 | info | reference-contract.json claims implementation-sufficient with 4 inventory items (entry method, dictionary member, enum, observable picker-behavior contract) x 9 dimensions, all mapped to overview fragments or the child route. No omitted surface: the feature adds no interfaces, methods, events, or track constraints beyond the member + enum. |
| explanation-quality | 4/5 | info | Overview covers why (explainer's use cases), how (verified picker contract table), naming disambiguation, lifecycle; child route covers the member across all nine dimensions with verbatim spec text. |
| examples | 4/5 | info | Two complete pre/code examples on the overview (request+hint+track-check, ignore-safely pattern) and two on the child route (complete async pattern incl. decline path, invalid-value TypeError), plus three HEAD-200 CPS demo routes (preferred-capture embedded on overview, hint-vs-default embedded on child, options-inspector linked). |
| browser-compat-fallbacks | 4/5 | minor | BCD absence verified (no DisplayMediaStreamOptions.json; no audioSelection subfeature under api.MediaDevices.getDisplayMedia) and interim tables compiled from chromestatus listing + launch CL + WebKit standards-positions, labelled interim. Fallback story documented: unknown dictionary members are ignored per WebIDL, so the hint degrades silently. |
| links-validity | 5/5 | info | All citations are direct links; no plain-text source labels. Spec anchors (#dom-displaymediastreamoptions-audioselection, #idl-def-audioselectionpreferenceenum) verified present in the dated WD; the ED's broken-anchor state is documented instead of linked blindly. CPS routes HEAD-checked 200 before embedding. |
| accessibility | 5/5 | info | Single h1 with wbr hints, sequential h2 outline, tables with caption + th scope, role=note aria-labelled banner, descriptive iframe titles, wbr/overflow-wrap for long tokens; CSS variables only (WCAG AA per house style). |
| responsive-ux | 4/5 | info | All tables inside .table-wrap{overflow-x:auto}; h1/lede/code overflow-wrap:anywhere; pre blocks scroll internally. Mobile + desktop screenshots captured and read (390px + 1280px) before handoff. |
| showcase-demo-relationship | 5/5 | info | CPS feature index and all three concept routes (preferred-capture, hint-vs-default, options-inspector) verified 200 on 2026-07-28; overview embeds preferred-capture, child embeds hint-vs-default, options-inspector linked as text. |
modern-web-guidance consulted
- readable API reference documentation page with IDL code blocks, dictionary member reference, browser compatibility tables, embedded live demo iframe, responsive mobile and desktop — Semantic structure: single h1, ordered headings, correct use of pre/code, figure/figcaption for embeds, labelled tables. (Applied: single h1 (+wbr), h2 outline, pre/code for IDL and snippets, figure/figcaption iframes with descriptive titles, caption+scope on every table.)
- readable API reference documentation page with IDL code blocks, dictionary member reference, browser compatibility tables, embedded live demo iframe, responsive mobile and desktop — Accessible banners, labelled regions, sufficient contrast, no text-overflow clipping. (Applied: role=note + aria-label on Baseline banner, CSS-variable palette (house WCAG AA), overflow-wrap:anywhere on headings/lede/code.)
- responsive data tables without horizontal overflow on mobile, long code tokens wrapping — Contain wide tables in scrollable wrappers and let long tokens wrap; avoid fixed layouts that crush columns on narrow viewports. (Applied: .table-wrap{overflow-x:auto} on every table, no table-layout:fixed (the column-crush failure mode found on sibling pages), internal scroll on pre blocks.)
open questions
- The Editor's Draft at w3c.github.io serves the merged audioSelection sections with unexpanded Bikeshed macros and no fragment anchors (2026-07-28): when the ED build is fixed, the chromestatus spec_link anchor becomes live and the caution note in the specifications table should be revisited.
- Whether Chrome Android ever ships the feature: the chromestatus record lists no Android/WebView milestone and the steered UI is the desktop Views picker; an Android picker equivalent is not recorded anywhere in the sources.
- BCD has no audioSelection entry yet: when api.MediaDevices.getDisplayMedia gains an audioSelection_option subfeature (or a DisplayMediaStreamOptions file appears), the interim compat tables should be re-anchored to it.
- Whether other UAs interpret the hint differently (the spec leaves steering entirely to the UA): only Chrome's behavior is documented, because it is the only implementation that exists today.
follow-up goals
- [medium · targeted-fix] Re-check the Screen Capture Editor's Draft rendering: once w3c.github.io serves the audioSelection sections with proper Bikeshed output and live anchors, simplify the ED caution row in the specifications table and prefer ED anchors in citations.
- [medium · targeted-fix] When BCD records audioSelection (api.MediaDevices.getDisplayMedia subfeature or a DisplayMediaStreamOptions data file), replace the interim compat rows on both pages with the BCD-sourced table.
- [low · targeted-fix] Watch wpt/screen-capture for upstream audioSelection test coverage and update the WPT statements on both pages when tests land.
- [low · targeted-fix] When Mozilla records a standards position (or Firefox implementation), update the Firefox rows and the Baseline banner on both pages.