BASELINE NowYouCanUse.com
Limited Availability Canvas

contextlost and contextrestored

The contextlost event for <canvas> fires when the canvas backing storage is lost, while the contextrestored event fires when it is recreated.
Baseline Status: This feature is currently Limited (not yet Baseline). Latest engine implementation shipped on Apr 16, 2024.
Desktop Browser Engine Support
Google Chrome
99
Supported
Mozilla Firefox
125
Supported
Apple Safari
—
Unsupported
Microsoft Edge
99
Supported
Mobile Browser Engine Support
Chrome Android
99
Firefox Android
125
Safari iOS
—
Specifications and References
id: canvas-context-lost