← v151/deviceorientation-events-permission-request-api · conformance
critique · rev 1
v151/deviceorientation-events-permission-request-api
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | Correctly identifies exact MDN coverage and links out: MDN's DeviceOrientationEvent.requestPermission_static page (verified 200 on 2026-07-24 with Specifications and Browser compatibility sections, covering the PermissionState promise, secure-context requirement, and user-activation behavior) plus the companion DeviceMotionEvent.requestPermission_static page. The quick-reference facts trace to the W3C Device Orientation Event spec: DeviceOrientationEvent has static Promise<PermissionState> requestPermission(optional boolean absolute = false), while DeviceMotionEvent has the no-argument static requestPermission(); both resolve to 'granted' or 'denied', gate the 'accelerometer' and 'gyroscope' permissions, and require transient activation while the underlying state is 'prompt'; interfaces are [Exposed=Window, SecureContext]. Chrome status provenanced to the direct chromestatus API (updated 2026-07-15): v150 listing 'In developer trial (Behind a flag)', detail desktop 151 'In development', active stage intent_ship=5 'Prepare to ship' desktop_first 151 — enum resolved from core_enums.py. Identity 5915984063889408 present (chromestatus-identity-link pass). |
| milestone-mapping | 5/5 | info | Feature id 5915984063889408 appears in features_by_type for milestone=150 ('In developer trial (Behind a flag)') — listing position authoritative per invariant #2, re-verified 2026-07-24. Slug 'deviceorientation-events-permission-request-api' derived from the LISTING name via the server slugify. The same id also appears in the v151 listing (Enabled by default); v151's folder remains future additive work. |
| completeness | 5/5 | info | Honest 'covered on MDN' stub per the repository's Case-A policy: MDN card to the exact method page, why-gendn-doesn't-duplicate sentence, and a quick-reference table carrying the chromestatus identity, spec anchor (verified #dom-deviceorientationevent-requestpermission exists), both MDN method pages, and the sister-project showcase demo link. Stub is the durable 'blocked' analogue — nothing duplicated, nothing invented. |
| links-validity | 5/5 | info | mdn-outbound-link + mdn-card-present pass. All outbound links fetched during research (both MDN method pages 200, both event interface pages 200, spec anchor verified in the spec DOM, showcase feature 200). external-links-rel-safe pass (all target=_blank carry rel=noopener). Zero empty anchors (suite: pass). |
| accessibility | 5/5 | info | main-landmark + single-h1 pass; the quick-reference table uses th scope=row row headers; heading order h1→h2 intact. |
| responsive-ux | 5/5 | info | no-horizontal-overflow desktop+mobile pass (shots read); chrome-devtools-mcp at 1280×800 and 390×844 confirms scrollWidth equals innerWidth on both and the quick-reference table fits at 342px (overflow-wrap:anywhere on cells). |
| showcase-demo-relationship | 5/5 | info | Stub links the sister-project demo family for the same feature id (chrome-platform-showcase v150/deviceorientation-events-permission-request-api, HEAD-checked 200 with concepts feature-detect-gate, request-motion, request-orientation) without embedding — faithful to the Case-A stub shape; the generated suite records the demo identity via cpsFeature without demo-embed assertions. |
modern-web-guidance consulted
- responsive data tables and code blocks without horizontal overflow on mobile — Doc-tables need overflow-wrap / min-width:0 so long identifiers don't spill on narrow viewports. (Applied — doc-table cells carry overflow-wrap:anywhere; the quick-reference table stays within the mobile viewport (scrollWidth=390=innerWidth, table 342px).)
- accessible reference documentation semantics landmarks headings tables links — One main landmark, one h1, semantic tables with scope, and descriptive outbound link text. (Applied — single main/h1, th scope=row headers, the MDN card link names the exact method page rather than a bare URL.)
open questions
- Chrome's ship state will move (detail says desktop 151 'In development' / 'Prepare to ship' as of the 2026-07-15 API update): the stub's MDN link stays correct regardless, but if MDN's coverage or URL shape changes (e.g. the static method pages are merged into the event pages), update the card to the new canonical MDN location.