← v161/translator-api-on-android · conformance
critique · rev 1
v161/translator-api-on-android
Implementation-sufficient Chrome 161 reference for Translator API on Android, combining the Web Machine Learning CG Translator WebIDL with Chromium's Android-specific runtime guardrails (features.cc), Chrome Custom Tabs support, TranslatorAPIAllowed enterprise policy, and the live Chrome Platform Showcase availability-states demo.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | WebIDL verbatim from Web Machine Learning CG Translator API spec and Writing Assistance APIs supporting types (fetched 2026-11-24), cross-checked with Blink translator.idl/cc. Concrete Android guardrails (TranslationAPIMaxServiceCount=2 vs 10, TranslationAPIModelIdleUnloadTimeout=1m vs 0, TranslationAPIMaxInputSizeBytes=256 KiB vs 0, ~79-84 MiB per pair) quoted directly from Chromium components/on_device_translation/features.cc and ChromeStatus 5106126157905920. |
| milestone-mapping | 5/5 | info | Feature 5106126157905920 appears under 'Enabled by default' in /api/v0/features?milestone=161 with listing name 'Translator API on Android'; slug translator-api-on-android matches listing name; H1 equals listing name; declared ChromeStatus row links https://chromestatus.com/feature/5106126157905920. |
| completeness | 5/5 | info | Full reference justified under invariant #6 because MDN's Translator page does not document Android Custom Tabs, Android memory/input/metered-network guardrails, or TranslatorAPIAllowed on Android, and BCD still lists chrome_android: false. reference-contract.json maps all 5 inventory items across all 9 required dimensions. |
| explanation-quality | 5/5 | info | Explains the full Translator lifecycle alongside Android-specific operational realities (chunking for the 256 KiB input cap, calling destroy() under the 2-service cap, why inputQuota returning Infinity does not override Android's service byte budget, and why storage/metered-network checks return unavailable). |
| examples | 5/5 | info | Embeds the verified live Chrome Platform Showcase concept demo (availability-states, which checks availability without auto-downloading models), links all 4 sibling v161 concept demos, and provides two complete semantic <pre><code> examples (Android-safe chunked translation with cleanup and translateStreaming). |
| browser-compat-fallbacks | 5/5 | info | Combines BCD api/Translator.json (Chrome desktop 138, Edge 148, Firefox/Safari false), ChromeStatus 5106126157905920 (Chrome Android 161, WebView null), webstatus.dev Limited availability, and Mozilla/WebKit standards-positions while explicitly disclosing BCD's chrome_android: false freshness gap. |
| links-validity | 5/5 | info | Every visible source label carries a direct <a href> with target='_blank' rel='noopener' (W3C/CG specs, Blink IDL/C++, Chromium features.cc, Enterprise policy, BCD, webstatus.dev, ChromeStatus, blink-dev, crbug, wpt.fyi, MDN, CPS). |
| accessibility | 5/5 | info | Single <main>, single <h1>, sequential h2/h3 headings, <nav class='local-nav' aria-label='On this page'>, captioned semantic tables with <th scope>, focusable .table-wrap scroll regions with aria-labelledby and :focus-visible outline, descriptive iframe title, and role='note' on the Baseline banner. |
| responsive-ux | 5/5 | info | Uses shared public/styles.css semantic tokens, logical max-inline-size: 100% on .table-wrap horizontal scrollers, max-width: 100% on the lazy-loaded CPS iframe, and verified via npm run responsive at desktop (1280x800) and narrow mobile (360x740). |
| showcase-demo-relationship | 5/5 | info | Primary embedded demo https://chrome-platform-showcase.paulkinlan-ea.deno.net/v161/translator-api-on-android/availability-states/ HEAD-checked 200 on 2026-11-24 with sandbox='allow-scripts allow-same-origin' referrerpolicy='strict-origin-when-cross-origin' loading='lazy'; explicit parent breadcrumb /v161/translator-api-on-android/ and matching conformance suite (release v161, featureSlug translator-api-on-android, chromestatusId 5106126157905920) verified 200. |
modern-web-guidance consulted
- accessible semantic html tables focus states landmarks — Use semantic landmarks (<main>, <header>, <nav>, <footer>), sequential headings, captioned tables with <th scope>, descriptive iframe title, and visible :focus-visible outlines on focusable scroll regions. (Applied: semantic landmarks, sequential h1-h3 outline, captioned tables inside .table-wrap[tabindex='0'][role='region'][aria-labelledby] with 3px :focus-visible outline, and descriptive title on the CPS iframe.)
- responsive reference documentation data tables code blocks navigation — Use semantic HTML5 elements, lazy-load offscreen iframes with loading='lazy', and keep interactive embeds accessible without aria-hidden. (Applied: CPS iframe uses loading='lazy', sandbox='allow-scripts allow-same-origin', referrerpolicy='strict-origin-when-cross-origin', and remains accessible in the accessibility tree.)
- text wrap legibility mobile typography dark mode — Keep headings balanced and code blocks scrollable on narrow mobile screens without breaking layout. (Applied via shared public/styles.css (h1-h3 text-wrap: balance, overflow-wrap: anywhere on inline code/headings, overflow-x: auto on pre blocks) with minimal page-specific CSS.)
- text wrap legibility mobile typography dark mode — Rely on shared semantic light-dark() design tokens for WCAG AA contrast across light and dark color schemes. (Applied: uses only public/styles.css CSS variables with no hardcoded colors.)
open questions
- Update the Browser compatibility table once BCD api/Translator.json adds Chrome for Android 161 and clarifies Edge on Android support.
follow-up goals
- [low · targeted-fix] Refresh the Browser compatibility table once BCD api/Translator.json records chrome_android: 161.