We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2bcf87 commit bf282eaCopy full SHA for bf282ea
src/css/curCSS.js
@@ -15,11 +15,13 @@ if ( window.getComputedStyle ) {
15
// Support: IE<=11+, Firefox<=30+ (#15098, #14150)
16
// IE throws on elements created in popups
17
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
18
- if ( elem.ownerDocument.defaultView.opener ) {
19
- return elem.ownerDocument.defaultView.getComputedStyle( elem );
+ var view = elem.ownerDocument.defaultView;
+
20
+ if ( !view.opener ) {
21
+ view = window;
22
}
23
- return window.getComputedStyle( elem );
24
+ return view.getComputedStyle( elem );
25
};
26
27
curCSS = function( elem, name, computed ) {
0 commit comments