← v147/gamepad-event-driven-input-api · conformance
critique · rev 1
v147/gamepad-event-driven-input-api
MDN-shape upgrade + factual fix: Baseline banner, Syntax (verbatim Chromium M147 IDL), corrected event name gamepadrawinputchanged in examples, live showcase iframe, interim compat table (no BCD entry), Specifications table.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | major | EVENT-NAME ERROR FIXED: the page's examples listened for 'rawgamepadinputchange' (the ChromeStatus summary's wording). Chromium's M147 branch (branch-heads/7727, mapped by chromiumdash) registers 'gamepadrawinputchanged' in event_type_names.json5 and declares ongamepadrawinputchanged in window_gamepad.idl; the MSEdgeExplainers explainer uses the same name. Examples, lede, at-a-glance, the event heading and the relation table now use gamepadrawinputchanged; the pinned evidence-divergence paragraph is kept and an event-name update paragraph added. Syntax IDL quoted verbatim from Chromium source (all fetched 2026-11-22). |
| milestone-mapping | 5/5 | info | ChromeStatus stages: DevTrial desktop/android 147, OT desktop 149-154; runtime feature status 'experimental' on the 147 branch (experimental-web-platform-features flag). Route, slug, identity and selected demo URL unchanged. |
| completeness | 4/5 | info | reference-contract.json stays implementation-sufficient and gains a third inventory item: the GamepadRawInputChangeEvent interface + init dictionary (five FrozenArray<long> index attributes) with all nine dimensions mapped; securityPrivacy moved from not-applicable to documented (#security-privacy: explainer's gamepad-user-gesture requirement). |
| explanation-quality | 4/5 | info | Banner separates the Widely-available parent Gamepad feature from this Limited-availability event; Syntax gives both listen forms and feature-detection. |
| examples | 4/5 | minor | Showcase button-visualizer concept embedded (HTTP 200) and seen rendering at 1280 and 360. Caveat stated in the caption: the showcase demo itself listens for 'rawgamepadinputchange' (curl of its HTML), so in Chrome it exercises its polling fallback; that is a chrome-platform-showcase defect, not fixed here. Code examples now feature-detect and keep a polling fallback; second example reads buttonsPressed/buttonsReleased. |
| browser-compat-fallbacks | 4/5 | info | BCD has no entry (api/GamepadRawInputChangeEvent.json 404; no Window gamepadrawinputchanged_event key) — stated, with an interim table from the ChromeStatus record and Chromium runtime_enabled_features.json5, labelled as not-BCD; Edge stated as Unknown rather than assumed. |
| links-validity | 5/5 | info | Every new source label links directly (Chromium IDL files at branch-heads/7727, event_type_names.json5, runtime_enabled_features.json5, chromiumdash milestone record, explainer sections, ChromeStatus record + API, BCD repo/files, webstatus feature + API). '(when built)' removed from the showcase link; explainer added to See also. |
| accessibility | 5/5 | info | Banner role=note with aria-label; captioned compat table in a focusable named scroll region; iframe titled; long BCD path tokens wrapped in <code> so they break inside the column. |
| responsive-ux | 4/5 | info | deno task responsive: desktop ok / mobile ok. Full-height captures at 1280 and 360 read: the first 360 pass showed the api/GamepadRawInputChangeEvent.json link running past the column edge; fixed by putting the path in <code> (globally overflow-wrap:anywhere) and re-read. Pre blocks scroll internally at 360 (pre-existing behaviour). |
| showcase-demo-relationship | 4/5 | minor | Feature-index showcase link placed before the iframe so the manifest-selected demo stays the feature root (verified before/after). Showcase demo uses the wrong event name — recorded as an open question for the showcase project. |
modern-web-guidance consulted
- responsive comparison table on mobile without horizontal page overflow — Semantic <table> with <caption>/<thead>/<th>; wrap the table in a scroll container (overflow:auto) that is keyboard-focusable (tabindex=0) and named as a region (role=region + aria-labelledby the caption) so narrow screens scroll the table, not the page; keep short cells legible rather than crushing them. (Applied to the new compat table: .table-wrap (shared overflow-x:auto scroller) with tabindex=0, role=region, aria-labelledby=compat-caption; captioned table with thead/tbody; the browser and version columns are white-space:nowrap so they are not broken mid-word by the global overflow-wrap:anywhere guard. Exception: sticky headers / stacked-card layout not adopted — a 4-row, 3-column table does not need them and the shared design system has no such component (would mean new shared CSS, off-limits to a leaf writer).)
- lazy loaded cross-origin iframe embed sandbox — Defer offscreen third-party embeds (loading=lazy) so they do not compete with the page's LCP resources; give embeds explicit dimensions to avoid layout shift. (Applied: the showcase iframe is loading=lazy with a fixed height=520 and width:100%, below the fold; it carries the routine's mandated sandbox="allow-scripts allow-same-origin" + referrerpolicy="strict-origin-when-cross-origin" pair and a descriptive title.)
open questions
- chrome-platform-showcase v147/gamepad-event-driven-input-api demos listen for 'rawgamepadinputchange'; Chromium dispatches 'gamepadrawinputchanged'. Raise with the showcase project (outside gendn's write scope).
- When BCD adds api/GamepadRawInputChangeEvent, replace the interim compat table with BCD data.
- ChromeStatus flag field names #gamepad-raw-input-change-event; not independently verified as a chrome://flags entry on 147.
follow-up goals
- [low · targeted-fix] Replace the interim (ChromeStatus/Chromium-source) compat table with BCD data once api/GamepadRawInputChangeEvent.json exists.
- [high · targeted-fix] Check the v149 gamepad-event-driven-input-api page for the same rawgamepadinputchange vs gamepadrawinputchanged event-name error and correct it in place.