← v152/gamepad-button-type-attribute · conformance
critique · rev 1
v152/gamepad-button-type-attribute
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | Every signature traces verbatim to sources fetched live 2026-07-29: the spec PR preview (GamepadButtonType enum + GamepadButton interface IDL extracted from the rendered PR), Chromium gamepad_button.idl (verbatim incl. [RuntimeEnabled=GamepadButtonTypes] gate and value comments), the explainer (read in full), the Intent to Prototype (DevTrial desktop 152, Android 152), runtime_enabled_features.json5 (GamepadButtonTypes experimental, not public), CL 7760763 (MERGED 2026-07-24), WebKit PR #65693 (open), PR #196 state (open, Gecko bug field empty). No invented members, values, or milestones. |
| milestone-mapping | 5/5 | info | Slug gamepad-button-type-attribute = slugified listing name; folder v152/ = the milestone whose listing contains the feature (category 'In developer trial (Behind a flag)'); both pages carry the chromestatus.com/feature/5075054393163776 identity link. |
| completeness | 4/5 | info | reference-contract.json claims implementation-sufficient: 3 inventory items (enum, attribute, extended-mapping algorithm) × 9 dimensions, all documented or not-applicable with sourced rationale. Substantial member has a stable child route (gamepadbutton-type/). The developer-facing surface is genuinely small (one attribute, three enum values). |
| explanation-quality | 5/5 | info | Overview covers motivation (trackpad on PlayStation controllers, per-controller index tables today), the extended-mapping model, the three-value classification with verbatim spec definitions AND Chromium IDL comments side by side, and honest spec-maturity framing (PR open, ED lacks the attribute). |
| examples | 4/5 | minor | Feature detection, trackpad detection, and classification-filter snippets adapted from the explainer. Not executed locally (requires Chrome 152 + flag + physical gamepad hardware — the API cannot be exercised with synthetic input); patterns are source-derived. |
| browser-compat-fallbacks | 5/5 | info | No BCD key (api/GamepadButton.json has only pressed/touched/value — verified) and no web-features entry (webstatus query zero matches), both stated with linked evidence; interim compat tables on both pages are labelled non-BCD and compiled from linked primary sources incl. the empty Gecko field and the open WebKit PR. Showcase route 404 → text-link fallback per the Case B rule, with the hardware-dependency reason stated. |
| links-validity | 5/5 | info | All citation labels are direct primary-source links (spec PR + preview, explainer, Chromium IDL, flag record, intent thread, CL, WebKit PR/bug, BCD, webstatus, WPT). Zero plain-text citations. MDN absence documented with the 404 member URL and search result. |
| accessibility | 5/5 | info | Semantic tables with <caption> + th scope (per accessibility guidance), baseline banner with role=note + aria-label, code in semantic elements, CSS variables only (WCAG AA per invariant #5). |
| responsive-ux | 5/5 | info | h1/lede/code overflow-wrap:anywhere, wide tables in .table-wrap{overflow-x:auto}, pre scrolls internally (css-layout guidance). Verified with headless-Chromium screenshots at 390px and 1280px — read, no overflow or clipping. |
| showcase-demo-relationship | 4/5 | minor | CPS feature route HEAD-checked 404 (2026-07-29): no iframe embedded; text link + explainer-derived snippets used instead, per the fallback rule. The page notes a demo also requires physical gamepad hardware. |
modern-web-guidance consulted
- responsive reference documentation tables without horizontal overflow — Lean on intrinsic sizing; .table-wrap{overflow-x:auto} for wide tables; overflow-wrap:anywhere for long unbreakable tokens (flag names, IDL); pre{overflow-x:auto} so code scrolls internally instead of widening the page. (Applied throughout: doc-tables inside .table-wrap, overflow-wrap:anywhere on h1/lede/inline code, pre with internal scroll, <wbr> in the member-page H1.)
- accessible data tables with proper headers caption — Use <caption> and <th scope=col|row> for data tables; don't use tables for layout; prefer native naming (figcaption, aria-label on note regions). (All data tables carry captions and scoped header cells; baseline banners use role=note with aria-label; enum/value tables use th scope=col.)
open questions
- Does Chromium's prototype classify any shipping controller's buttons as "trackpad" today (e.g. DualSense over USB/Bluetooth), and does the fingerprinting mitigation (spec §14.2) ever clamp the extended buttons in practice? Runtime verification needs Chrome 152 + the flag + physical hardware.
- Will w3c/gamepad PR #196 merge with the same enum values and ordering? The PR is open (last updated 2025-07-10); if normative text changes, the syntax and value tables need re-anchoring.
- Does WebKit PR #65693 land, and does Mozilla ever file a position (the spec PR's Gecko bug field is empty)? Interim compat rows would need updating.
follow-up goals
- [high · targeted-fix] Re-check w3c/gamepad PR #196 state; when merged, re-anchor citations from the PR preview to the merged Gamepad ED and re-verify the enum values/attribute semantics against the merged text.
- [medium · targeted-fix] When a BCD key for GamepadButton.type (or a web-features entry) appears, replace the interim compat tables and Baseline banner note with the recorded data.
- [low · additive-page] When the Chrome Platform Showcase v152/gamepad-button-type-attribute route becomes live (200), embed the concept iframe per the standard pattern (demo will need hardware notes).
- [medium · targeted-fix] Verify runtime classification behavior on real hardware (DualSense trackpad → "trackpad"; >17-button controllers → "non-standard") under Chrome 152 + --enable-blink-features=GamepadButtonTypes, and record observed values on the member page.