Limited Availability
Canvas
2D canvas opacity
The optional
alpha parameter of a 2D canvas's getContext() method sets whether the canvas has an alpha transparency channel. If set to false, then this permits the browser to optimize compositing for an opaque canvas.
Baseline Status:
This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Jan 15, 2020.
Desktop Browser Engine Support
Google Chrome
32
Supported
Mozilla Firefox
30
Supported
Apple Safari
—
Unsupported
Microsoft Edge
79
Supported
Mobile Browser Engine Support
Chrome Android
32
Firefox Android
30
Safari iOS
—
Specifications and References
MDN Browser Compat Data Keys:
id: canvas-2d-alpha