Skip to content

Commit 3542c12

Browse files
committed
CSS: Don't workaround the IE 11 iframe-in-fullscreen sizing issues
IE 11 used to have an issue where if an element inside an iframe was put in fullscreen mode, the element dimensions started being 100 times too small; we've added a workaround that would multiply them by 100. However, the IE 11 issue has been unexpectedly fixed and since our detection was really detecting the browser and not a bug, we've started breaking the browser instead of fixing it. Since there's no good way to detect if the bug exists, we have to back the workaround out completely. Refs ff1a082 Refs fb9adb9 Fixes jquerygh-3041 Refs jquerygh-1764 Refs jquerygh-2401 Refs 90d828b
1 parent b1154f1 commit 3542c12

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/css.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -186,19 +186,6 @@ function getWidthOrHeight( elem, name, extra ) {
186186
isBorderBox = support.boxSizing &&
187187
jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
188188

189-
// Support: IE11 only
190-
// In IE 11 fullscreen elements inside of an iframe have
191-
// 100x too small dimensions (gh-1764).
192-
if ( document.msFullscreenElement && window.top !== window ) {
193-
194-
// Support: IE11 only
195-
// Running getBoundingClientRect on a disconnected node
196-
// in IE throws an error.
197-
if ( elem.getClientRects().length ) {
198-
val = Math.round( elem.getBoundingClientRect()[ name ] * 100 );
199-
}
200-
}
201-
202189
// some non-html elements return undefined for offsetWidth, so check for null/undefined
203190
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
204191
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668

0 commit comments

Comments
 (0)