← v160/canvas2d-tone-mapping · conformance
critique · rev 1
v160/canvas2d-tone-mapping
Implementation-sufficient Chrome 160 reference for Canvas2D tone mapping, sourced from merged WHATWG HTML PR #11734, HTML Living Standard, Blink IDL, ColorWeb-CG explainer, WPT, BCD, and ChromeStatus 5077164932333568, with embedded live Chrome Platform Showcase demo.
rubric
| dimension | score | severity | evidence |
|---|---|---|---|
| factual-source-fidelity | 5/5 | info | WebIDL verified verbatim against merged HTML Living Standard (PR #11734), Blink canvas_tone_mapping.idl, canvas_rendering_context_2d_settings.idl, canvas_context_creation_attributes_module.idl, ColorWeb-CG canvas-tone-map.md, WPT getContextAttributes.html & encode-hdr.html, and ChromeStatus 5077164932333568. |
| milestone-mapping | 5/5 | info | Feature 5077164932333568 appears under 'Enabled by default' in /api/v0/features?milestone=160 with listing name 'Canvas2D tone mapping'; slug canvas2d-tone-mapping matches lib/chromestatus.ts; H1 equals listing name; ChromeStatus row declared in .doc-table. |
| completeness | 5/5 | info | reference-contract.json maps all 4 surface items (CanvasToneMappingMode, CanvasToneMapping, CanvasRenderingContext2DSettings.toneMapping + getContextAttributes(), and output rendering / dynamic-range-limit / ImageBitmap / HDR encoding) across all 9 dimensions. |
| explanation-quality | 5/5 | info | Covers 'standard' vs 'extended' HDR headroom semantics, CSS dynamic-range-limit composition, ImageBitmap preservation, PNG/JPEG/WebP HDR encoding round-trip, context creation immutability, WebIDL TypeError rules, and feature detection. |
| examples | 5/5 | info | Embeds live Chrome Platform Showcase concept demo (hdr-highlight-viewer) with required sandbox + referrerpolicy, links 5 sibling concepts, and provides two complete semantic <pre><code> examples. |
| browser-compat-fallbacks | 5/5 | info | Honest Limited availability Baseline banner, discloses BCD has no toneMapping subfeature yet, and cites ChromeStatus 160 (desktop/Android/WebView), Mozilla standards-positions#1359, and WebKit's supportive comment on PR #11734. |
| links-validity | 5/5 | info | Every visible citation label links directly to its primary artifact with target='_blank' rel='noopener'; all HTML Living Standard anchors and CPS routes verified HTTP 200 on 2026-11-24. |
| accessibility | 5/5 | info | Single <main>, single <h1>, sequential h2/h3 hierarchy, On-this-page <nav class='local-nav'>, captioned tables with <th scope>, focusable .table-wrap scroll regions with :focus-visible outline, and role='note' Baseline banner. |
| responsive-ux | 5/5 | info | Verified via npm run responsive -- --page v160/canvas2d-tone-mapping --screenshots (desktop:ok mobile:ok) and visual inspection of desktop (1280x800) and mobile (360x740 DPR3) screenshots: 0px horizontal overflow, clean wrapping of Baseline chips and local-nav pills, block-level responsive iframe, and max-inline-size: 100% scrollable tables. |
| showcase-demo-relationship | 5/5 | info | Embeds verified 200 concept demo https://chrome-platform-showcase.paulkinlan-ea.deno.net/v160/canvas2d-tone-mapping/hdr-highlight-viewer/ whose parent breadcrumb resolves to /v160/canvas2d-tone-mapping/conformance.json (chromestatusId 5077164932333568). |
modern-web-guidance consulted
- responsive reference documentation table scroll focus navigation code blocks — Place content in semantic landmarks (<main>, <header>, <nav>, <footer>), use sequential headings, semantic tables with <caption> and <th scope>, prefer aria-labelledby over duplicated aria-label, and ensure keyboard-focusable scroll containers have visible :focus-visible indicators. (Applied: single <main>, sequential h1/h2/h3, <nav class='local-nav' aria-label='On this page'>, captioned tables with <th scope='col|row'>, focusable .table-wrap scroll regions wired via aria-labelledby with 3px :focus-visible outline, and role='note' on the Baseline banner.)
- responsive data table mobile overflow typography code blocks — Use logical sizing properties (max-inline-size, inline-size), never mask overflow with overflow: hidden, and apply display: block on replaced elements like <iframe> to eliminate inline baseline gaps. (Applied: .table-wrap uses max-inline-size: 100% with horizontal scroll, .example-embed iframe uses display: block and inline-size: 100%, and shared public/styles.css provides wrapping flex lists and horizontal scroll on <pre> without overflow: hidden clipping.)
- responsive data table mobile overflow typography code blocks — Apply text-wrap: balance to short multi-line headings and preserve legible code and table typography on narrow mobile screens. (Applied: relies on shared /public/styles.css typography tokens without inline overrides on pre, h1, code, blockquote, or .baseline-browsers.)
- dark mode color-scheme semantic tokens light-dark — Use semantic design tokens that adapt across light and dark color schemes rather than hard-coded light-only inline colors. (Applied: all borders and focus outlines use CSS custom properties from /public/styles.css (--border-black, --accent-blue) with zero hard-coded colors.)
open questions
- Update the Browser compatibility table once MDN BCD adds a toneMapping subfeature to api/CanvasRenderingContext2D.json and once Safari/Firefox ship implementations.
- Track WHATWG HTML issue #13235 for any follow-up explicit bitmap tone-mapping state specification details.
follow-up goals
- [low · targeted-fix] Refresh the Browser compatibility table when BCD adds CanvasRenderingContext2DSettings.toneMapping or when Firefox/Safari ship implementations.