getComputedStyle()
Widely available
The getComputedStyle()
global method returns an CSSStyleDeclaration
object that represents all CSS declarations applied to a given element.
To learn more, see
Window: getComputedStyle() method at MDN.
Compatibility (view on caniuse.com)
- Chrome 11 Released on 2011-04-27
- Chrome Android 18 Released on 2012-06-27
- Edge 12 Released on 2015-07-29
- Firefox 3.5 Released on 2009-06-30
- Firefox for Android 4 Released on 2011-03-29
- Safari 5.1 Released on 2011-07-20
- Safari on iOS 5 Released on 2011-10-12