Web platform features explorer

getComputedStyle()

Widely available since 2018-01-29
Tags: api Groups: CSS > CSS object models

The getComputedStyle() global method returns an CSSStyleDeclaration object that represents all CSS declarations applied to a given element.

Browser support (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