← v148/webgpu-linear-indexing-feature · conformance
critique · rev 1
v148/webgpu-linear-indexing-feature
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | minor | Built-in definitions (Stage/Type/Direction/Description, including the global_invocation_index formula) and the requires-directive grammar quoted from the WGSL editor's draft (fetched 2026-11-15). Corrected the at-a-glance 'WGSL opt-in' row: linear_indexing is a language extension, available automatically; requires only documents the dependency. Errors now documented (shader-creation error for an unsupported requires; u32-overflow dispatch failure), where the contract had marked errors not-applicable. |
| milestone-mapping | 5/5 | info | Feature 5071243424432128 listed as 'WebGPU: `linear_indexing` feature' under 'Enabled by default' in the milestone=148 listing (queried 2026-11-15); route and identity unchanged. |
| browser-compat-fallbacks | 5/5 | info | Prose table replaced with a per-version table from BCD api.WGSLLanguageFeatures.extension_linear_indexing raw JSON (Chrome 148 with its GPU/OS note, Android/WebView/Edge mirrors, Firefox/Safari false). Banner = Limited availability; webstatus.dev has no separate entry and the parent webgpu feature is limited. Fallback guidance (feature-detect, compute from global_invocation_id) added. |
| examples | 4/5 | info | index-visualizer showcase concept embedded (HEAD 200, 2026-11-15) after the existing feature-index link in the examples citation, so the manifest demo is unchanged; four sibling concepts linked. |
| links-validity | 4/5 | info | New citations link the exact WGSL anchors (requires directive, language extension, both built-ins), the BCD file, the webstatus.dev API record and the standards-position issues. |
| accessibility | 4/5 | info | Banner role=note with aria-label; grammar <pre> and both new tables are labelled, focusable scroll regions with thead headers; iframe titled with figcaption. |
| responsive-ux | 4/5 | info | Playwright 1280x800 and 360x740 DPR3: zero document overflow, zero console errors. The new built-in table first rendered with crushed Stage/Type/Direction columns (the page's existing code{overflow-wrap:anywhere} + 30% first column); fixed with page-scoped nowrap/min-width so it scrolls inside .table-wrap. Screenshots re-read after the fix. |
modern-web-guidance consulted
- responsive data table on mobile without horizontal page overflow — Keep header semantics; scroll the table in a named, focusable region; keep short cell text on one line instead of letting columns shrink below legibility. (Applied: thead headers, labelled tabindex=0 .table-wrap regions, nowrap on the short Stage/Type/Direction and version columns. Exception: no stacked mobile layout (house .table-wrap scroll convention).)
- lazy load offscreen iframe embed — loading=lazy on off-screen iframes; scrollable code blocks as named, focusable regions. (Applied: the iframe is loading=lazy; the grammar <pre> has role=region, aria-label and tabindex=0.)
- status banner note accessible semantics — Give region-like components accessible names; don't hide focusable embeds. (Applied: Baseline banner is role=note with aria-label; iframe has a title and is not aria-hidden.)
open questions
- The at-a-glance 'Spec' row still points at the W3C TR snapshot of WGSL; the built-in definitions were verified against the editor's draft. Whether the TR snapshot already contains linear_indexing was not checked.
- BCD's Chrome note limits support to ChromeOS, macOS, Windows, and Linux on Intel Gen12+ GPUs; the Android mirror value (148) is derived by BCD mirroring, not separately verified on a device.
follow-up goals
- [low · targeted-fix] Run the embedded index-visualizer and the page's WGSL examples on a WebGPU-capable Chrome 148+ device and record observed values of global_invocation_index/workgroup_index.