aboutsummaryrefslogtreecommitdiffstats
path: root/src/css/support.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-05-13 21:39:56 +0200
committerGitHub <noreply@github.com>2019-05-13 21:39:56 +0200
commit3527a3840585e6a359cd712591c9c57398357b9b (patch)
tree41446f392d9a8984e31297df3252d1b538f4191e /src/css/support.js
parentccbd6b93424cbdbf86f07a86c2e55cbab497d7a3 (diff)
downloadjquery-3527a3840585e6a359cd712591c9c57398357b9b.tar.gz
jquery-3527a3840585e6a359cd712591c9c57398357b9b.zip
Core: Remove IE-specific support tests, rely on document.documentMode
Also, update some tests to IE-sniff when deciding whether to skip a test. Fixes gh-4386 Closes gh-4387
Diffstat (limited to 'src/css/support.js')
-rw-r--r--src/css/support.js60
1 files changed, 0 insertions, 60 deletions
diff --git a/src/css/support.js b/src/css/support.js
deleted file mode 100644
index 65763baec..000000000
--- a/src/css/support.js
+++ /dev/null
@@ -1,60 +0,0 @@
-define( [
- "../core",
- "../var/document",
- "../var/documentElement",
- "../var/support"
-], function( jQuery, document, documentElement, support ) {
-
-"use strict";
-
-( function() {
-
- var boxSizingReliableVal,
- container = document.createElement( "div" ),
- div = document.createElement( "div" );
-
- // Finish early in limited (non-browser) environments
- if ( !div.style ) {
- return;
- }
-
- // Support: IE <=9 - 11+
- // Style of cloned element affects source element cloned (#8908)
- div.style.backgroundClip = "content-box";
- div.cloneNode( true ).style.backgroundClip = "";
- support.clearCloneStyle = div.style.backgroundClip === "content-box";
-
- jQuery.extend( support, {
- boxSizingReliable: function() {
-
- // This is a singleton, we need to execute it only once
- if ( div ) {
- container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
- "margin-top:1px;padding:0;border:0";
- div.style.cssText =
- "position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
- "margin:auto;border:1px;padding:1px;" +
- "width:60%;top:1%";
- documentElement.appendChild( container ).appendChild( div );
-
- var divStyle = window.getComputedStyle( div );
-
- // Support: IE 9 - 11+
- // Detect misreporting of content dimensions for box-sizing:border-box elements
- boxSizingReliableVal = Math.round( parseFloat( divStyle.width ) ) === 36;
-
- documentElement.removeChild( container );
-
- // Nullify the div so it wouldn't be stored in the memory and
- // it will also be a sign that checks already performed
- div = null;
- }
-
- return boxSizingReliableVal;
- }
- } );
-} )();
-
-return support;
-
-} );