diff --git a/lib/browser/client-scripts/polyfills/getComputedStyle.js b/lib/browser/client-scripts/polyfills/getComputedStyle.js index 180f5836f..a07888fd9 100644 --- a/lib/browser/client-scripts/polyfills/getComputedStyle.js +++ b/lib/browser/client-scripts/polyfills/getComputedStyle.js @@ -109,6 +109,9 @@ CSSStyleDeclaration.prototype = { }; // .getComputedStyle -exports.getComputedStyle = function getComputedStyle(element) { - return new CSSStyleDeclaration(element); +exports.getComputedStyle = function getComputedStyle(element, pseudoEl) { + // IE9 needs matchMedia support but already support getComputedStyle + return window.getComputedStyle + ? window.getComputedStyle(element, pseudoEl) + : new CSSStyleDeclaration(element); };