Baseline Widely DOM API
api.Window.getComputedStyle
Granular MDN Browser Compat Data support history across 14 tracked browsers.
Specification Area
DOM API
Standard track
First Core Launch
Firefox 1
2004-11-09
Core-3 Stability
1,493d (4.1y)
Last: Chrome (2008-12-11)
Baseline Feature
Widely
getComputedStyle()
Browser Support Timeline
Notes (1)
Firefox, FF And: Before version 62 this function returnednull when called on a Window with no presentation (e.g. an iframe with display: none; set). Since 62 it returns a CSSStyleDeclaration object with length 0, containing empty strings (bug 1467722; also see bug 1471231 for further work).Full Browser Compatibility Table
| Browser | Type | Version | Release Date | Status / Caveats |
|---|---|---|---|---|
| Chrome | desktop | 1 | 2008-12-11 | Supported |
| Firefox | desktop | 1 | 2004-11-09 | Supported |
| Safari | desktop | 3 | 2007-10-26 | 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 | 4.4 | 2013-12-09 | Supported |
| WebView on iOS | mobile | 1 | 2007-06-29 | Supported |
| Samsung Browser | mobile | 1.0 | 2013-04-27 | Supported |
| Opera | desktop | 7.2 | 2003-09-23 | 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 |