Limited 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
Limited
Missing ≥1 target
First Core Launch
Chrome 99
2022-03-01
Core-3 Stability
Limbo (1,731d (4.7y))
Missing: safari
BCD Keys Mapped
6
Group: Canvas
Browser Support Timeline
Browser Support Releases
| Browser | Type | Version | Release Date |
|---|---|---|---|
| Chrome | desktop | 99 | 2022-03-01 |
| Chrome Android | mobile | 99 | 2022-03-01 |
| Edge | desktop | 99 | 2022-03-03 |
| Firefox | desktop | 125 | 2024-04-16 |
| Firefox for Android | mobile | 125 | 2024-04-16 |
Constituent MDN BCD Keys (Sample)
| BCD Key | Area | Core-3 TTA |
|---|---|---|
| api.CanvasRenderingContext2D.isContextLost | DOM API | 1,731d (4.7y) limbo |
| api.HTMLCanvasElement.contextlost_event | DOM API | 1,731d (4.7y) limbo |
| api.HTMLCanvasElement.contextrestored_event | DOM API | 1,731d (4.7y) limbo |
| api.OffscreenCanvas.contextlost_event | DOM API | 1,731d (4.7y) limbo |
| api.OffscreenCanvas.contextrestored_event | DOM API | 1,731d (4.7y) limbo |
| api.OffscreenCanvasRenderingContext2D.isContextLost | DOM API | 1,731d (4.7y) limbo |