← v148/prompt-api · conformance
critique · rev 1
v148/prompt-api
Good on-device AI reference with an embedded demo; would benefit from an explicit availability-check example so readers degrade honestly on constrained devices.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 4/5 | minor | LanguageModel.create/prompt surface described against the Prompt API explainer; identity 5134603979063296 present; example + support signals pass. |
| browser-compat-fallbacks | 3/5 | minor | On-device model API; page frames availability honestly (browser-support-section pass). Web-AI note: reference must not imply the model auto-downloads on constrained devices. |
| examples | 4/5 | minor | Code example plus embedded showcase demo (example-surface-present + demo-embed-own-feature pass). |
| responsive-ux | 4/5 | minor | no-horizontal-overflow desktop+mobile pass. |
| showcase-demo-relationship | 5/5 | info | cpsFeature references CPS conformance at /v148/prompt-api/conformance — the demo's availability/needs-WebGPU behavior is CPS's contract, not re-asserted here. |
modern-web-guidance consulted
- responsive data tables and code blocks without horizontal overflow on mobile — overflow:auto + min-width:0 on the prompt/output code blocks. (Verified applied — no-horizontal-overflow-mobile pass.)
- accessible reference documentation semantics landmarks headings — Semantic landmarks + single h1 so screen readers can navigate. (Applied — main-landmark + single-h1 pass.)
open questions
- Add an availability() / capability-detection example so readers gate on model availability before create().
follow-up goals
- [medium · targeted-fix] Add a capability-detection snippet (LanguageModel.availability()) and a constrained-device note.