← v153/capability-elements-camera-and-microphone · conformance
critique · rev 1
v153/capability-elements-camera-and-microphone
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | major | Every behavioral claim traces to a linked implementation file fetched 2026-07-28: interface composition from html_camera_element.idl + html_microphone_element.idl + html_media_capture_element_base.idl + two modules/mediastream partials; event dispatch ordering from user_media_request_provider_impl.cc (SetMediaStream/SetError before EnqueueEvent); activation gating and cancel mapping from html_media_capture_element_base.cc; setConstraints contract (first-call-wins via did_set_constraints_, member backfill, bare-scalar SanitizeTrackConstraints with the exact kept-property list) from user_media_element_constraints.cc. Documented divergences instead of smoothing them: spec track/ontrack vs shipping stream/onstream; spec MediaTrackConstraintSet vs shipping HTMLMediaStreamConstraints; the original 2026-07-28 trunk flag/listing mismatch and then-absent camera/mic WPT tests. Both are re-checked on-page for 2026-10-08: trunk stable/public vs M153 branch without status; five files each in upstream camera/ and microphone/ WPT suites. Prose correctness still requires independent review per the contract. |
| milestone-mapping | 5/5 | info | Feature id 5153829504024576 appears in the live milestone=153 listing under 'Enabled by default' (verified 2026-07-28); slug derived from the listing name per invariant #1; folder placed per invariant #2. The intent's 152 estimate vs the listing's 153 is documented with both sources. |
| completeness | 4/5 | major | reference-contract.json inventories 9 items (2 elements, 2 properties, 1 method, 1 dictionary, 3 events) — the complete developer-facing surface derivable from the IDL composition — mapped to the overview plus three stable child routes (properties/, setconstraints/, events/), each covering all nine dimensions. Claimed implementation-sufficient; structural gates must confirm. |
| explanation-quality | 4/5 | info | why-they-exist section grounds the feature in the usermedia MVP and PEPC lineage with the single-capability motivation; each section cites its sources inline; the errors table gives exact DOMException names/messages with reachability caveats. |
| examples | 4/5 | info | Overview example configures and consumes both elements end-to-end (setConstraints + stream/cancel/error handlers + srcObject attach); child pages add focused examples including the first-call-wins and sanitizer pitfalls as corrected anti-patterns. |
| browser-compat-fallbacks | 4/5 | minor | Compatibility tables on every page carry explicit unknowns (WebView), the source-dated trunk/M153-branch flag distinction, BCD/MDN absence, and the now-present WPT suites; fallback-content and feature-detection guidance is in context sections and examples. |
| links-validity | 5/5 | info | All citation labels are direct links to primary artifacts (spec, explainer, intent thread, ChromeStatus feature + API, Chromium IDL/impl files, TAG review, webstatus). The Google-internal tracking bug (b.corp.google.com) is deliberately NOT linked and is noted as internal-only in reference-contract.json notes. Zero plain-text source labels. |
| accessibility | 5/5 | info | Single h1, single main landmark, sequential h2 outline, tables use caption + th scope=row/col, code in semantic pre/code, baseline banner uses role=note with aria-label. |
| responsive-ux | 4/5 | info | Wide doc-tables wrapped in .table-wrap{overflow-x:auto}; overflow-wrap:anywhere on h1, cells, and code tokens; h1 uses <wbr> hints on child pages. Headless-Chromium screenshots at 390px and 1280px verified by the writer (see report). |
| showcase-demo-relationship | 4/5 | info | No CPS demo exists for this feature (route 404, 2026-07-28) — page states this honestly and cross-links the sibling usermedia demo which exercises the same mechanism. |
modern-web-guidance consulted
- MDN-style API reference documentation page responsive tables code examples accessibility — Place all content within landmarks; sequential h1-h6 outline; semantic tables with caption and th scope; lists for repeated content. (Applied: single main landmark, one h1, sequential h2s, caption + th scope on every doc-table, ul/ol for enumerations.)
- responsive data table horizontal overflow long code tokens mobile reference page — Give long unbreakable content shrink/wrap behavior (min-inline-size:0, overflow-wrap) and scrollable containment rather than letting it force page overflow. (Applied: .table-wrap{overflow-x:auto} around every wide table; overflow-wrap:anywhere on table cells, code tokens, h1, and the lede.)
open questions
- 2026-10-08 re-check: trunk CameraAndMicrophoneElements is stable/public, M153 branch-heads/7978 still has no status. How the historical M153 build was enabled is not established by those two snapshots; feature-detect in the target build.
- 2026-10-08 re-check: WPT camera/ and microphone/ each have five upstream files. Presence is verified; passing results for a particular M153 build remain unverified.
- Android WebView availability is unspecified (intent answers 'No' to all-six-platforms) — confirm the excluded platform set.
follow-up goals
- [low · targeted-fix] Embed the chrome-platform-showcase demo for this feature when the CPS route exists (currently 404) and add a cpsFeature reference.
- [medium · targeted-fix] Audit sibling capability-element pages (v151/capability-elements-usermedia-mvp and family) for the table column-crush bug fixed here (overflow-wrap:anywhere reduces table min-content so auto layout crushes columns at mobile width); hoist the .table-wrap .doc-table{min-width;table-layout:fixed} fix if affected.