← v151/capability-elements-usermedia-mvp · conformance
critique · rev 1
v151/capability-elements-usermedia-mvp
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | major | The replaced v150 page documented the SUPERSEDED WICG/PEPC draft (permissionconstraints JSON, autostart, enabled, streamready/userchangedenabled) and an unverifiable 'OT extended to 152' claim. The new reference is rebuilt from the shipping surface: Chromium IDLs (html_user_media_element.idl, html_media_capture_element_base.idl, two modules/mediastream partial mixins), the normative spec section, and the current w3c explainer. Every behavioral claim (event routing, DOMException names, default constraints, legacy-mode branching) traces to a linked implementation file. Prose correctness still requires independent review per the contract. |
| milestone-mapping | 5/5 | info | Listing verification 2026-07-26: feature 4926233538330624 is PRESENT in the milestone=151 listing ('Enabled by default') and ABSENT from milestone=150 and milestone=152 listings; stages corroborate (OT 144-148 with extensions to 152 and 155, ship 151). Page filed at v151 per invariant #2; the v150 page was misplaced. Move recorded for migrations.json (integrator applies). |
| completeness | 4/5 | minor | Nine-item inventory covers the whole shipping MVP surface (element, 2 properties, method, dictionary, 3 events) plus the experimental legacy migration surface, each with nine documented dimensions across an overview and three member routes. Known gaps recorded as explicit unknowns: no BCD entry, no upstream WPT coverage, no MDN page. The explainer-proposed autostart attribute is absent from shipping IDL and documented as not shipped. |
| explanation-quality | 4/5 | minor | Model-first overview (state machine, why-it-exists, failure table) with member pages for the detailed contracts. The superseded-draft section explicitly de-programs readers of the early OT docs. Some sections (legacy surface) are necessarily Chromium-specific and say so. |
| examples | 4/5 | minor | Complete semantic <pre><code> examples on every page: full acquisition flow on the overview, listener patterns per event, constraint configuration patterns including the bare-scalars-only sanitization guidance and first-call-wins semantics, and a legacy migration probe. All escaped per invariant #4. |
| browser-compat-fallbacks | 4/5 | minor | Tabular compatibility on every page with explicit unknowns (BCD: no entry; upstream WPT coverage exists and is linked). Vendor positions linked (mozilla#1392 under consideration; WICG/PEPC#62 no signal). Feature-detection pattern ('HTMLUserMediaElement' in window) and fallback-content guidance documented; the superseded event names are called out as a cross-doc hazard. |
| links-validity | 4/5 | minor | Every citation label is a direct link (spec anchors, IDL/source files, issues, TAG review, ChromeStatus + API record, CPS demo). External links use target=_blank rel=noopener. The CPS embed route was HEAD-checked 200 (feature route AND its /conformance) before embedding. |
| accessibility | 4/5 | minor | Single h1 per page, one main landmark, logical h2 hierarchy, th scope=col on tabular headers, captions on data tables, iframe has a title. Contrast inherits the shared design system (WCAG AA per invariant #5). |
| responsive-ux | 4/5 | minor | Tables wrapped in .table-wrap (overflow-x:auto) with overflow-wrap:anywhere cells, pre blocks scroll via the shared stylesheet, long headings break with <wbr>/overflow-wrap. Verified at 390x844 and 1280x800 with chrome-devtools-mcp: no document-level horizontal overflow on any of the four pages. |
| showcase-demo-relationship | 4/5 | minor | Embeds the identity-matched CPS feature route /v151/capability-elements-usermedia-mvp/ (same chromestatus id 4926233538330624, verified in the embed's HTML) as a lazy-loaded, dimensioned iframe; cpsFeature in the conformance suite references CPS's own contract without forking it. |
modern-web-guidance consulted
- responsive API reference documentation page with data tables and code blocks on narrow mobile without horizontal overflow — Lean on intrinsic sizing; wrap potentially-wide content (tables) in overflow containers; set min-inline-size:0 / overflow-wrap on unbreakable content; use logical properties; reserve space with aspect-ratio/explicit dimensions. (Applied: .table-wrap{overflow-x:auto} around every data table, overflow-wrap:anywhere on table cells and the h1, <wbr> in long interface headings, explicit iframe width/height. Exception: no container queries — the shared editorial design system's single-column measure already fits the reference format.)
- embedding live interactive demo iframe in documentation page responsively with fixed aspect ratio and lazy loading — Use native loading=lazy on below-the-fold iframes; always set explicit width/height (or aspect-ratio) so the browser reserves space and avoids CLS; give the iframe a title. (Applied: the CPS embed iframe carries loading=lazy, width=720 height=480, max-width:100%, and a descriptive title.)
- accessible reference documentation structure headings landmarks data tables iframe embeds — Semantic HTML first: one h1, logical heading order, main landmark, th scope on table headers, captions for data tables, titled iframes, visible focus inherited from the design system. (Applied: single h1 + main landmark on all four pages, scope=col on compat/failure table headers, <caption> on data tables, titled iframe, byline/nav consistent with the site shell.)
- lazy-loading iframes embedded live demo dimensioned to avoid layout shift CLS (fresh npx modern-web-guidance@latest search, cycle-17 re-verification) — Use content-visibility:auto to defer rendering of off-screen sections on content-heavy pages (long feeds, dashboards). (Exception, justified: these are small static server-rendered reference pages (each well under 60KB HTML, no feeds/dashboards/heavy widgets); measured rendering is clean (0 console errors, no long-task evidence in the dual-viewport CDP runs) and the shared editorial design system does not use content-visibility. The applicable half of the guidance — defer off-screen WORK — is already applied via the lazy-loaded, dimensioned CPS iframe. Adding content-visibility would be novelty-chasing against the 'use guidance intelligently' rule, not an evidenced improvement.)
open questions
- Partial runtime evidence, Chrome 154.0.8037.97 on 2026-10-08: with --use-fake-device-for-media-stream and --use-fake-ui-for-media-stream, the retained browser probe waited 3.5s after attachment before a genuine CDP click; its log records trusted click then trusted stream with navigator.userActivation.isActive true and el.stream already populated with live audio and video tracks. It does not record an error event or an immediately-after-attachment click. An exploratory immediate-click failure was reported in the A5 handoff but has no retained error trace in the cited probe; independently, Chromium html_capability_element_base.cc confirms temporary disablement can produce InvalidStateError with error.message of the form 'The permission element is disabled due to: <reason>.' (the source-confirmed reason substring is 'being recently attached to layout tree, intersection with viewport changed'). Impossible video.width.exact=99999 did not prevent acquisition (fake video width=640), consistent with required-constraint filtering in this case; legacy isValid was absent under the default flag. Retained browser probe: timeout -k 30 85 deno run --allow-all /tmp/a5-capability-browser.mjs with a local HTTP server, output /tmp/a5-capability.log, screenshots /tmp/a5-capability-before.png and /tmp/a5-capability-after.png. Not yet verified in the retained probe: an immediate-click failure, whether el.error clears when a subsequent attempt on the SAME control succeeds, all error mappings, advanced-constraint filtering, or the experimental legacy-mode branch. This is partial, not completion of the full runtime goal.
- The spec's constraint filter says 'remove any required constraints' while the explainer says advanced constraints are also ignored; Chromium's exact filtering behavior for advanced lists needs runtime verification on a 151 build.
- Whether <usermedia> gains the explainer-proposed autostart attribute or mute-toggle behavior in a later milestone — both are documented as not shipping in 151.
- Upstream WPT coverage: none found in Chromium's external/wpt mirror as of 2026-07-26; if tests land, the compat tables should cite them.
follow-up goals
- [medium · targeted-fix] When a Chrome 151 build with camera/mic is available, runtime-verify the documented contract (event ordering, error mapping, constraint filtering, legacy-mode branch) and record the evidence in this critique.
- [low · targeted-fix] When MDN/BCD gain HTMLUserMediaElement coverage or upstream WPT lands, update the compatibility tables and reconsider this page's built-vs-stub status per the MDN dedup policy.
- [low · additive-page] If <camera>/<microphone> (feature 5153829504024576) ship, add sibling member references linking their gendn pages from this one.