code: function getComputedCSS(styleName) {
    if (this.ownerDocument.defaultView && this.ownerDocument.defaultView.opener) {
      return this.ownerDocument.defaultView.getComputedStyle(this)[styleName];
    }
    return window.getComputedStyle(this)[styleName];
  }
docs: Get the computed style on an element.