← Back to release summary

DOMMatrix setTransform/getTransform on OffscreenCanvas

Category
Graphics
Type
New or changed feature
Status
Enabled by default (Chrome 80)
Intent stage
Start prototyping

Summary

Adds setTransform(DOMMatrix2DInit) and getTransform() to OffscreenCanvasRenderingContext2D.

Motivation

This feature exists and is supported currently for CanvasRenderingContext2D. The WHATWG spec states that OffscreenCanvasRenderingContext2D implements all canvas transform methods, and this is one of the canvas transform methods listed there. Without it it is impossible for a web developer to get the current value of a canvas' transform if it is offscreen.

Standards & signals

Docs: N/A

Explainers: https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/HT7REXjYLUM

View on chromestatus.com