← back to v160 · canvas2d-tone-mapping

conformance · v160

v160 · canvas2d-tone-mapping — conformance probe

9 assertions drawn from the spec. Each is a single contract the spec text makes. Pass/fail reflects what this browser executed; blocked means the contract was not run because it needs user mediation, hardware, or another unavailable precondition. Open the page in Chrome stable / canary / Firefox / Safari to compare.

browser: … spec: https://github.com/whatwg/html/pull/11734 chromestatus: #5077164932333568 generated 2026-11-22T12:00:00Z by weekly-hardening-builder
0
pass
0
fail
0
blocked
9
total
id contract kind verdict detail
tonemapping-member-read getContext('2d', settings) reads the toneMapping member of CanvasRenderingContext2DSettings (a getter on it is invoked during dictionary conversion). spec ↗ script …
default-reflects-standard With no toneMapping setting, getContextAttributes().toneMapping.mode is "standard". spec ↗ script …
empty-dictionary-reflects-standard toneMapping: {} defaults mode to "standard" in the reflected settings. spec ↗ script …
extended-reflects-extended toneMapping: {mode: "extended"} on an HTMLCanvasElement 2D context is reflected as "extended" by getContextAttributes(). spec ↗ script …
offscreen-extended-reflects-extended toneMapping: {mode: "extended"} on an OffscreenCanvas 2D context is reflected as "extended" by getContextAttributes(). spec ↗ script …
invalid-mode-throws A mode outside the CanvasToneMappingMode enum ("standard", "extended") makes getContext throw a TypeError. spec ↗ throws …
tone-mapping-does-not-alter-pixels Tone mapping applies at display time only: a float16 canvas created with "extended" stores and returns a 4.0 channel value unchanged from getImageData. spec ↗ script …
extended-png-encode-preserves-hdr An "extended" srgb-linear float16 canvas filled with 16x SDR white encodes to PNG (convertToBlob) and decodes back to ~16, as in WPT encode-hdr.html. spec ↗ script …
standard-png-encode-clamps-to-sdr A "standard" srgb-linear float16 canvas filled with 16x SDR white encodes to PNG and decodes back to ~1 (maximum SDR precision), as in WPT encode-hdr.html. spec ↗ script …