There was an error while loading. Please reload this page.
1 parent 88a0fc0 commit 906988bCopy full SHA for 906988b
1 file changed
lib/browser/client-scripts/polyfills/getComputedStyle.js
@@ -109,6 +109,9 @@ CSSStyleDeclaration.prototype = {
109
};
110
111
// <Global>.getComputedStyle
112
-exports.getComputedStyle = function getComputedStyle(element) {
113
- return new CSSStyleDeclaration(element);
+exports.getComputedStyle = function getComputedStyle(element, pseudoEl) {
+ // IE9 needs matchMedia support but already support getComputedStyle
114
+ return window.getComputedStyle
115
+ ? window.getComputedStyle(element, pseudoEl)
116
+ : new CSSStyleDeclaration(element);
117
0 commit comments