Baseline Widely HTML
html.elements.canvas.width
Granular MDN Browser Compat Data support history across 14 tracked browsers.
Specification Area
HTML
Standard track
First Core Launch
Safari 2
2005-04-29
Core-3 Stability
1,322d (3.6y)
Last: Chrome (2008-12-11)
Baseline Feature
Widely
<canvas>
Browser Support Timeline
Notes (7)
Firefox: Before Firefox 5, the canvas width and height were signed integers instead of unsigned integers.Firefox: Before Firefox 6, a <canvas> element with a zero width or height would be rendered as if it had default dimensions.Firefox: Before Firefox 12, if JavaScript is disabled, the <canvas> element was being rendered instead of showing the fallback content as per the specification. Since then, the fallback content is rendered instead.Safari: Although early versions of Apple's Safari browser don't require the closing tag, the specification indicates that it is required, so you should be sure to include it for broadest compatibility. Before version 2, Safari will render the content of the fallback in addition to the canvas itself unless you use CSS tricks to mask it.FF And: Before Firefox for Android 5, the canvas width and height were signed integers instead of unsigned integers.FF And: Before Firefox for Android 6, a <canvas> element with a zero width or height would be rendered as if it had default dimensions.FF And: Before Firefox for Android 14, if JavaScript is disabled, the <canvas> element was being rendered instead of showing the fallback content as per the specification. Since then, the fallback content is rendered instead.Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 1 | 2008-12-11 | Supported |
| Firefox | desktop | 1.5 | 2005-11-29 | Supported |
| Safari | desktop | 2 | 2005-04-29 | Supported |
| Edge | desktop | 12 | 2015-07-29 | Supported |
| Chrome Android | mobile | 18 | 2012-06-27 | Supported |
| Firefox for Android | mobile | 4 | 2011-03-29 | Supported |
| Safari on iOS | mobile | 1 | 2007-06-29 | Supported |
| WebView Android | mobile | 37 | 2014-09-03 | Supported |
| WebView on iOS | mobile | 1 | 2007-06-29 | Supported |
| Samsung Browser | mobile | 1.0 | 2013-04-27 | Supported |
| Opera | desktop | 9 | 2006-06-20 | Supported |
| Opera Android | mobile | 10.1 | 2010-11-09 | Supported |
| Deno | server | — | — | — |
| Node.js | server | — | — | — |
| Bun | server | — | — | — |
| Quest Browser | xr | 5.0 | 2018-07-01 | Supported |
| Internet Explorer | desktop | 9 | 2011-03-14 | Supported |