mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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. Refsff1a0822f7
Refsfb9adb9f05
Fixes gh-3041 Refs gh-1764 Refs gh-2401 Refs90d828bad0
This commit is contained in:
parent
b1154f1984
commit
3542c12137
13
src/css.js
13
src/css.js
@ -186,19 +186,6 @@ function getWidthOrHeight( elem, name, extra ) {
|
|||||||
isBorderBox = support.boxSizing &&
|
isBorderBox = support.boxSizing &&
|
||||||
jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
|
jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
|
||||||
|
|
||||||
// Support: IE11 only
|
|
||||||
// In IE 11 fullscreen elements inside of an iframe have
|
|
||||||
// 100x too small dimensions (gh-1764).
|
|
||||||
if ( document.msFullscreenElement && window.top !== window ) {
|
|
||||||
|
|
||||||
// Support: IE11 only
|
|
||||||
// Running getBoundingClientRect on a disconnected node
|
|
||||||
// in IE throws an error.
|
|
||||||
if ( elem.getClientRects().length ) {
|
|
||||||
val = Math.round( elem.getBoundingClientRect()[ name ] * 100 );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// some non-html elements return undefined for offsetWidth, so check for null/undefined
|
// some non-html elements return undefined for offsetWidth, so check for null/undefined
|
||||||
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
|
// svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
|
||||||
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
|
// MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
|
||||||
|
Loading…
Reference in New Issue
Block a user