---
id: "canvas-context-lost"
kind: "web-feature"
canonical: "https://timetostable.com/feature/canvas-context-lost"
baseline: "limited"
bcd_version: "8.1.11"
web_features_version: "3.48.0"
---

# contextlost and contextrestored (`canvas-context-lost`)

The contextlost event for <canvas> fires when the canvas backing storage is lost, while the contextrestored event fires when it is recreated.

- **Group**: Canvas
- **Baseline**: Limited Availability
- **Specification**: https://html.spec.whatwg.org/multipage/webappapis.html#context-lost-steps
- **Constituent BCD keys**: 6

## Browser Support Timeline

| Browser | Version | Release Date |
| --- | --- | --- |
| Chrome | 99 | 2022-03-01 |
| Chrome Android | 99 | 2022-03-01 |
| Edge | 99 | 2022-03-03 |
| Firefox | 125 | 2024-04-16 |
| Firefox for Android | 125 | 2024-04-16 |

