)]}'
{"id": 5077164932333568, "name": "Canvas2D tone mapping", "summary": "Adds a toneMapping option to CanvasRenderingContext2DSettings, allowing a 2D canvas context to specify 'standard' or 'extended' tone mapping behavior when displaying HDR content, unifying the tone mapping API across 2D canvas and WebGPU.", "markdown_fields": [], "blink_components": ["Blink>Canvas"], "star_count": 45, "search_tags": ["hdr", "canvas"], "created": {"by": "ccameron@chromium.org", "when": "2025-10-01 11:43:24.401075"}, "updated": {"by": "ccameron@chromium.org", "when": "2026-11-18 16:23:06.026349"}, "category": "Graphics", "category_int": 14, "feature_notes": null, "web_feature": "canvas-2d-color-management", "is_official_web_feature": true, "webdx_usecounter_enum": null, "enterprise_feature_categories": [], "enterprise_product_category": 0, "is_releasenotes_content_reviewed": false, "is_releasenotes_publish_ready": false, "stages": [{"id": 5114938599276544, "created": "2025-10-01 11:43:25.146661", "feature_id": 5077164932333568, "stage_type": 110, "display_name": null, "pm_emails": [], "tl_emails": [], "ux_emails": [], "te_emails": [], "intent_thread_url": null, "announcement_url": null, "experiment_goals": null, "experiment_risks": null, "origin_trial_id": null, "origin_trial_feedback_url": null, "ot_action_requested": false, "ot_approval_buganizer_component": null, "ot_approval_buganizer_custom_field_id": null, "ot_approval_criteria_url": null, "ot_approval_group_email": null, "ot_chromium_trial_name": null, "ot_description": null, "ot_display_name": null, "ot_documentation_url": null, "ot_emails": [], "ot_feedback_submission_url": null, "ot_has_third_party_support": false, "ot_is_critical_trial": false, "ot_is_deprecation_trial": false, "ot_owner_email": null, "ot_requester_email": null, "ot_require_approvals": false, "ot_use_counter_bucket_number": null, "ot_webfeature_use_counter": null, "extensions": [], "experiment_extension_reason": null, "ot_stage_id": null, "finch_url": null, "rollout_milestone": null, "rollout_platforms": [], "rollout_details": null, "rollout_impact": 2, "rollout_stage_plan": null, "enterprise_policies": [], "desktop_first": null, "android_first": null, "ios_first": null, "webview_first": null, "desktop_last": null, "android_last": null, "ios_last": null, "webview_last": null}, {"id": 5162845100703744, "created": "2025-10-01 11:43:25.197030", "feature_id": 5077164932333568, "stage_type": 120, "display_name": null, "pm_emails": [], "tl_emails": [], "ux_emails": [], "te_emails": [], "intent_thread_url": null, "announcement_url": null, "experiment_goals": null, "experiment_risks": null, "origin_trial_id": null, "origin_trial_feedback_url": null, "ot_action_requested": false, "ot_approval_buganizer_component": null, "ot_approval_buganizer_custom_field_id": null, "ot_approval_criteria_url": null, "ot_approval_group_email": null, "ot_chromium_trial_name": null, "ot_description": null, "ot_display_name": null, "ot_documentation_url": null, "ot_emails": [], "ot_feedback_submission_url": null, "ot_has_third_party_support": false, "ot_is_critical_trial": false, "ot_is_deprecation_trial": false, "ot_owner_email": null, "ot_requester_email": null, "ot_require_approvals": false, "ot_use_counter_bucket_number": null, "ot_webfeature_use_counter": null, "extensions": [], "experiment_extension_reason": null, "ot_stage_id": null, "finch_url": null, "rollout_milestone": null, "rollout_platforms": [], "rollout_details": null, "rollout_impact": 2, "rollout_stage_plan": null, "enterprise_policies": [], "desktop_first": null, "android_first": null, "ios_first": null, "webview_first": null, "desktop_last": null, "android_last": null, "ios_last": null, "webview_last": null}, {"id": 5116188535422976, "created": "2025-10-01 11:43:25.322727", "feature_id": 5077164932333568, "stage_type": 130, "display_name": null, "pm_emails": [], "tl_emails": [], "ux_emails": [], "te_emails": [], "intent_thread_url": null, "announcement_url": null, "experiment_goals": null, "experiment_risks": null, "origin_trial_id": null, "origin_trial_feedback_url": null, "ot_action_requested": false, "ot_approval_buganizer_component": null, "ot_approval_buganizer_custom_field_id": null, "ot_approval_criteria_url": null, "ot_approval_group_email": null, "ot_chromium_trial_name": null, "ot_description": null, "ot_display_name": null, "ot_documentation_url": null, "ot_emails": [], "ot_feedback_submission_url": null, "ot_has_third_party_support": false, "ot_is_critical_trial": false, "ot_is_deprecation_trial": false, "ot_owner_email": null, "ot_requester_email": null, "ot_require_approvals": false, "ot_use_counter_bucket_number": null, "ot_webfeature_use_counter": null, "extensions": [], "experiment_extension_reason": null, "ot_stage_id": null, "finch_url": null, "rollout_milestone": null, "rollout_platforms": [], "rollout_details": null, "rollout_impact": 2, "rollout_stage_plan": null, "enterprise_policies": [], "desktop_first": null, "android_first": null, "ios_first": null, "webview_first": null, "desktop_last": null, "android_last": null, "ios_last": null, "webview_last": null}, {"id": 5123125243150336, "created": "2025-10-01 11:43:25.412576", "feature_id": 5077164932333568, "stage_type": 140, "display_name": null, "pm_emails": [], "tl_emails": [], "ux_emails": [], "te_emails": [], "intent_thread_url": null, "announcement_url": null, "experiment_goals": null, "experiment_risks": null, "origin_trial_id": null, "origin_trial_feedback_url": null, "ot_action_requested": false, "ot_approval_buganizer_component": null, "ot_approval_buganizer_custom_field_id": null, "ot_approval_criteria_url": null, "ot_approval_group_email": null, "ot_chromium_trial_name": null, "ot_description": null, "ot_display_name": null, "ot_documentation_url": null, "ot_emails": [], "ot_feedback_submission_url": null, "ot_has_third_party_support": false, "ot_is_critical_trial": false, "ot_is_deprecation_trial": false, "ot_owner_email": null, "ot_requester_email": null, "ot_require_approvals": false, "ot_use_counter_bucket_number": null, "ot_webfeature_use_counter": null, "extensions": [], "experiment_extension_reason": null, "ot_stage_id": null, "finch_url": null, "rollout_milestone": null, "rollout_platforms": [], "rollout_details": null, "rollout_impact": 2, "rollout_stage_plan": null, "enterprise_policies": [], "desktop_first": null, "android_first": null, "ios_first": null, "webview_first": null, "desktop_last": null, "android_last": null, "ios_last": null, "webview_last": null}, {"id": 6255328282935296, "created": "2025-10-01 11:43:25.466759", "feature_id": 5077164932333568, "stage_type": 150, "display_name": null, "pm_emails": [], "tl_emails": [], "ux_emails": [], "te_emails": [], "intent_thread_url": null, "announcement_url": null, "experiment_goals": null, "experiment_risks": null, "origin_trial_id": null, "origin_trial_feedback_url": null, "ot_action_requested": false, "ot_approval_buganizer_component": null, "ot_approval_buganizer_custom_field_id": null, "ot_approval_criteria_url": null, "ot_approval_group_email": null, "ot_chromium_trial_name": null, "ot_description": null, "ot_display_name": null, "ot_documentation_url": null, "ot_emails": [], "ot_feedback_submission_url": null, "ot_has_third_party_support": false, "ot_is_critical_trial": false, "ot_is_deprecation_trial": false, "ot_owner_email": null, "ot_requester_email": null, "ot_require_approvals": false, "ot_use_counter_bucket_number": null, "ot_webfeature_use_counter": null, "extensions": [], "experiment_extension_reason": null, "ot_stage_id": null, "finch_url": null, "rollout_milestone": null, "rollout_platforms": [], "rollout_details": null, "rollout_impact": 2, "rollout_stage_plan": null, "enterprise_policies": [], "desktop_first": null, "android_first": null, "ios_first": null, "webview_first": null, "desktop_last": null, "android_last": null, "ios_last": null, "webview_last": null}, {"id": 5177841784324096, "created": "2025-10-01 11:43:25.719358", "feature_id": 5077164932333568, "stage_type": 160, "display_name": null, "pm_emails": [], "tl_emails": [], "ux_emails": [], "te_emails": [], "intent_thread_url": null, "announcement_url": null, "experiment_goals": null, "experiment_risks": null, "origin_trial_id": null, "origin_trial_feedback_url": null, "ot_action_requested": false, "ot_approval_buganizer_component": null, "ot_approval_buganizer_custom_field_id": null, "ot_approval_criteria_url": null, "ot_approval_group_email": null, "ot_chromium_trial_name": null, "ot_description": null, "ot_display_name": null, "ot_documentation_url": null, "ot_emails": [], "ot_feedback_submission_url": null, "ot_has_third_party_support": false, "ot_is_critical_trial": false, "ot_is_deprecation_trial": false, "ot_owner_email": null, "ot_requester_email": null, "ot_require_approvals": false, "ot_use_counter_bucket_number": null, "ot_webfeature_use_counter": null, "extensions": [], "experiment_extension_reason": null, "ot_stage_id": null, "finch_url": null, "rollout_milestone": null, "rollout_platforms": [], "rollout_details": null, "rollout_impact": 2, "rollout_stage_plan": null, "enterprise_policies": [], "desktop_first": 160, "android_first": 160, "ios_first": null, "webview_first": 160, "desktop_last": null, "android_last": null, "ios_last": null, "webview_last": null}], "accurate_as_of": "2026-11-12 00:47:26.315660", "creator_email": "ccameron@chromium.org", "updater_email": "ccameron@chromium.org", "owner_emails": ["ccameron@chromium.org"], "editor_emails": [], "cc_emails": [], "spec_mentor_emails": [], "unlisted": false, "deleted": false, "editors": [], "cc_recipients": [], "spec_mentors": [], "creator": "ccameron@chromium.org", "feature_type": "New or changed feature", "feature_type_int": 0, "intent_stage": "None", "intent_stage_int": 0, "active_stage_id": 5177841784324096, "bug_url": "https://issues.chromium.org/issues/448552449", "launch_bug_url": null, "new_crbug_url": "https://bugs.chromium.org/p/chromium/issues/entry?components=Blink>Canvas&blocking=448552449&cc=ccameron@chromium.org", "screenshot_links": [], "first_enterprise_notification_milestone": null, "enterprise_impact": 1, "breaking_change": false, "confidential": false, "shipping_year": 2026, "flag_name": null, "finch_name": "CanvasToneMapping", "non_finch_justification": null, "ongoing_constraints": null, "rollout_plan": 0, "rollout_plan_displayname": "Will ship enabled for all users", "motivation": "By default, HTML canvas elements limit their contents to the standard dynamic range (SDR) color volume of the target display. While WebGPU already supports configuring canvas tone mapping via GPUCanvasToneMapping, 2D canvas contexts lack a way to opt into displaying extended dynamic range (HDR) pixel values (such as those in float16 canvases) or explicitly constrain output to SDR. Unifying CanvasToneMapping across 2D canvas, WebGL, and WebGPU gives web developers a consistent mechanism to control how HDR canvas contents are tone mapped to the output device.", "devtrial_instructions": null, "activation_risks": "Low. Developers using float16 2D canvases or HDR color spaces can immediately opt into extended dynamic range output by passing { toneMapping: { mode: 'extended' } } to getContext('2d').", "measurement": null, "availability_expectation": "Feature is expected to be supported across major browsers within 12-24 months as part of the unified HDR Canvas specification effort.", "adoption_expectation": "Feature is used by HDR image/video editors and media viewers on the web within 12 months of launch in Chrome.", "adoption_plan": "Coordinate specification landing in WHATWG HTML (#11734), align with WebGL and WebGPU tone mapping APIs, and provide documentation and examples via W3C ColorWeb-CG.", "initial_public_proposal_url": "https://github.com/w3c/ColorWeb-CG/blob/main/canvas-tone-map.md", "explainer_links": ["https://github.com/w3c/ColorWeb-CG/blob/main/canvas-tone-map.md", "https://github.com/w3c/ColorWeb-CG/blob/main/hdr-big-picture.md"], "requires_embedder_support": false, "spec_link": "https://github.com/whatwg/html/pull/11734", "api_spec": true, "automation_spec": false, "interop_compat_risks": "Low risk. This feature unifies the existing WebGPU GPUCanvasToneMapping API into a shared CanvasToneMapping dictionary across 2D canvas, WebGL, and WebGPU, incubated in the W3C Color on the Web Community Group and proposed in WHATWG HTML PR #11734. The default behavior ('standard') preserves backwards compatibility with existing SDR canvas rendering.", "all_platforms": true, "all_platforms_descr": null, "non_oss_deps": "No.", "anticipated_spec_changes": "None to the core CanvasToneMapping dictionary and 'standard'/'extended' modes; ongoing editorial refinement in https://github.com/whatwg/html/pull/11734 and follow-up bitmap explicit state tracking in https://github.com/whatwg/html/issues/13235.", "security_risks": "None. The toneMapping setting only controls how the canvas's own pixel values are mapped to the display's dynamic range and does not expose the display's HDR headroom or any new fingerprinting vectors to JavaScript.", "ergonomics_risks": "None. The API consists of a lightweight context creation setting (toneMapping) and reflection in getContextAttributes(), matching WebGPU's existing design.", "wpt": true, "wpt_descr": "Tests of setting and querying the property:\nhttps://wpt.fyi/results/html/canvas/element/manual/context-attributes/getContextAttributes.html?label=experimental&label=master&aligned\nhttps://wpt.fyi/results/html/canvas/offscreen/manual/context-attributes/getContextAttributes.html?label=experimental&label=master&aligned\n\nTests drawing HDR colors to a 2D canvas, sending to an ImageBitmap and/or encoding to an image, then drawing the result to a new canvas. Verifies that the HDR metadata of the canvas is preserved in the full roundtrip.\nhttps://wpt.fyi/results/html/canvas/element/manual/wide-gamut-canvas/encode-hdr.html?label=experimental&label=master&aligned", "webview_risks": "None. Strictly additive context creation option; default behavior ('standard') is unchanged.", "devrel_emails": ["devrel-chromestatus-all@google.com"], "debuggability": "Canvas context creation attributes, including toneMapping, can be inspected via context.getContextAttributes() in DevTools Console.", "doc_links": [], "sample_links": [], "prefixed": null, "tags": ["hdr", "canvas"], "tag_review": "https://github.com/w3ctag/design-reviews/issues/1194", "tag_review_status": "Issues addressed", "tag_review_status_int": 3, "security_review_status": "Pending", "security_review_status_int": 1, "privacy_review_status": "Pending", "privacy_review_status_int": 1, "security_continuity_id": null, "security_launch_issue_id": null, "updated_display": null, "resources": {"samples": [], "docs": []}, "comments": null, "ff_views": 5, "safari_views": 3, "web_dev_views": 4, "browsers": {"chrome": {"bug": "https://issues.chromium.org/issues/448552449", "blink_components": ["Blink>Canvas"], "devrel": ["devrel-chromestatus-all@google.com"], "owners": ["ccameron@chromium.org"], "origintrial": false, "prefixed": null, "flag": false, "status": {"text": "Proposed", "val": 2, "milestone_str": "Proposed"}, "announced": false, "desktop": 160, "android": 160, "webview": 160, "ios": null}, "ff": {"view": {"url": "https://github.com/mozilla/standards-positions/issues/1359", "notes": "Discussed in W3C ColorWeb-CG and WHATWG HTML PR #11734.", "text": "No signal", "val": 5}}, "safari": {"view": {"url": "https://github.com/whatwg/html/pull/11734#issuecomment-6140323936", "notes": "Discussed in W3C ColorWeb-CG and WHATWG HTML PR #11734.", "text": "Positive", "val": 3}}, "webdev": {"view": {"text": "No signals", "val": 4, "url": null, "notes": "Positive interest from HDR web developers and W3C Color on the Web Community Group participants."}}, "other": {"view": {"text": null, "val": null, "url": null, "notes": null}}}, "standards": {"spec": "https://github.com/whatwg/html/pull/11734", "maturity": {"text": "Specification currently under development in a Working Group", "short_text": "Working draft", "val": 4}}, "is_released": false, "is_enterprise_feature": false, "experiment_timeline": null, "ai_test_eval_report": "**Conclusion:** Some test suggestions are available. See below.\n\n**Summary of Analysis:** The audit analyzed 17 requirements extracted from the specification. 8 requirements are covered by existing tests, and 9 requirements lack test coverage.\n\n-----\n\n### Detailed Coverage Analysis\n\n\n#### 1. Existence\n**Status:** Covered\n\n* **Spec Requirement:** The CanvasRenderingContext2DSettings dictionary must contain a toneMapping member.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/context-attributes/getContextAttributes.html`\n\n\n\n* **Spec Requirement:** The CanvasToneMapping dictionary must contain a mode member.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/context-attributes/getContextAttributes.html`\n\n\n\n* **Spec Requirement:** The CanvasToneMappingMode enumeration must include the \"standard\" value.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/context-attributes/getContextAttributes.html`\n\n\n\n* **Spec Requirement:** The CanvasToneMappingMode enumeration must include the \"extended\" value.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/context-attributes/getContextAttributes.html`\n\n\n\n* **Spec Requirement:** The getContextAttributes() method of a canvas rendering context must return a settings object that includes the toneMapping property reflecting the context's tone mapping configuration.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/context-attributes/getContextAttributes.html`\n\n\n\n\n\n-----\n\n\n\n#### 2. Common Use Cases\n**Status:** Partially Covered\n\n* **Spec Requirement:** When initializing a 2D canvas context, if the `toneMapping` setting is omitted from `CanvasRenderingContext2DSettings`, the context must default to a tone mapping mode of \"standard\".\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/context-attributes/getContextAttributes.html`\n\n\n\n* **Spec Requirement:** When a canvas is rendered to the output device, its backing store must be tone mapped specifically to the output device's HDR headroom, which must be limited by the element's applied `dynamic-range-limit` CSS property.\n\n\n  \n  \u274c Missing test coverage for: When a canvas is rendered to the output device, its backing store must be tone mapped specifically to the output device's HDR headroom, which must be limited by the element's applied `dynamic-range-limit` CSS property.\n\n\n* **Spec Requirement:** When a canvas is rendered to the output device, the conversion of the backing store to the output device's color space must occur strictly after the tone mapping step.\n\n\n  \n  \u274c Missing test coverage for: When a canvas is rendered to the output device, the conversion of the backing store to the output device's color space must occur strictly after the tone mapping step.\n\n\n* **Spec Requirement:** If a canvas context is configured with the \"standard\" tone mapping mode, the HDR headroom of its bitmap must be evaluated exactly as 0.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/wide-gamut-canvas/encode-hdr.html`\n\n\n\n* **Spec Requirement:** If a canvas context is configured with the \"extended\" tone mapping mode, the HDR headroom of its bitmap must be evaluated as not limited.\n\n  \n  \u2705 Verified in `/html/canvas/element/manual/wide-gamut-canvas/encode-hdr.html`\n\n\n\n* **Spec Requirement:** For both \"standard\" and \"extended\" tone mapping modes, the underlying pixel color values of the bitmap must not be altered by the tone mapping process itself.\n\n\n  \n  \u274c Missing test coverage for: For both \"standard\" and \"extended\" tone mapping modes, the underlying pixel color values of the bitmap must not be altered by the tone mapping process itself.\n\n\n* **Spec Requirement:** When calculating the final presented HDR headroom of the rendered canvas result, the value used must be the lesser of the canvas bitmap's intrinsic HDR headroom and the headroom it was tone mapped to.\n\n\n  \n  \u274c Missing test coverage for: When calculating the final presented HDR headroom of the rendered canvas result, the value used must be the lesser of the canvas bitmap's intrinsic HDR headroom and the headroom it was tone mapped to.\n\n\n* **Spec Requirement:** When generating an `ImageBitmap` from an HTMLCanvasElement or OffscreenCanvas (e.g., via `createImageBitmap` or `transferToImageBitmap`), the specific tone mapping settings of the source canvas must be preserved and included in the resulting bitmap data.\n\n\n  \n  \u274c Missing test coverage for: When generating an `ImageBitmap` from an HTMLCanvasElement or OffscreenCanvas (e.g., via `createImageBitmap` or `transferToImageBitmap`), the specific tone mapping settings of the source canvas must be preserved and included in the resulting bitmap data.\n\n\n\n\n-----\n\n\n\n#### 3. Error Scenarios\n**Status:** No test suggestions applicable\n\n\n\n-----\n\n\n\n#### 4. Invalidation\n**Status:** No test suggestions applicable\n\n\n\n-----\n\n\n\n#### 5. Integration\n**Status:** Not Covered\n\n* **Spec Requirement:** When rendering a canvas backing store to an output device, the bitmap must be tone mapped to the output device's HDR headroom as limited by the CSS dynamic-range-limit property.\n\n\n  \n  \u274c Missing test coverage for: When rendering a canvas backing store to an output device, the bitmap must be tone mapped to the output device's HDR headroom as limited by the CSS dynamic-range-limit property.\n\n\n* **Spec Requirement:** When rendering a canvas backing store to an output device, the bitmap must be tone mapped to the device's HDR headroom before it is converted to the output device's color space.\n\n\n  \n  \u274c Missing test coverage for: When rendering a canvas backing store to an output device, the bitmap must be tone mapped to the device's HDR headroom before it is converted to the output device's color space.\n\n\n* **Spec Requirement:** When an ImageBitmap is created from an HTMLCanvasElement or OffscreenCanvas, the resulting ImageBitmap must preserve the tone mapping behavior specified by the source canvas's CanvasToneMapping.\n\n\n  \n  \u274c Missing test coverage for: When an ImageBitmap is created from an HTMLCanvasElement or OffscreenCanvas, the resulting ImageBitmap must preserve the tone mapping behavior specified by the source canvas's CanvasToneMapping.\n\n\n* **Spec Requirement:** When transferring a bitmap via transferFromImageBitmap(), the tone mapping of the source bitmap must be included and preserved in the transferred bitmap data.\n\n\n  \n  \u274c Missing test coverage for: When transferring a bitmap via transferFromImageBitmap(), the tone mapping of the source bitmap must be included and preserved in the transferred bitmap data.\n\n\n\n\n\n-----\n\n### Test Suggestions\n\nFound 9 test suggestions:\n\n\n\n* When a canvas is rendered to the output device, its backing store must be tone mapped specifically to the output device's HDR headroom, which must be limited by the element's applied `dynamic-range-limit` CSS property.\n\n* When a canvas is rendered to the output device, the conversion of the backing store to the output device's color space must occur strictly after the tone mapping step.\n\n* For both \"standard\" and \"extended\" tone mapping modes, the underlying pixel color values of the bitmap must not be altered by the tone mapping process itself.\n\n* When calculating the final presented HDR headroom of the rendered canvas result, the value used must be the lesser of the canvas bitmap's intrinsic HDR headroom and the headroom it was tone mapped to.\n\n* When generating an `ImageBitmap` from an HTMLCanvasElement or OffscreenCanvas (e.g., via `createImageBitmap` or `transferToImageBitmap`), the specific tone mapping settings of the source canvas must be preserved and included in the resulting bitmap data.\n\n* When rendering a canvas backing store to an output device, the bitmap must be tone mapped to the output device's HDR headroom as limited by the CSS dynamic-range-limit property.\n\n* When rendering a canvas backing store to an output device, the bitmap must be tone mapped to the device's HDR headroom before it is converted to the output device's color space.\n\n* When an ImageBitmap is created from an HTMLCanvasElement or OffscreenCanvas, the resulting ImageBitmap must preserve the tone mapping behavior specified by the source canvas's CanvasToneMapping.\n\n* When transferring a bitmap via transferFromImageBitmap(), the tone mapping of the source bitmap must be included and preserved in the transferred bitmap data.\n\n", "ai_test_eval_run_status": 1, "ai_test_eval_status_timestamp": "2026-11-16 18:41:43.985151"}