root / drupal7 / sites / all / libraries / flexslider-2.5.0 / bower_components / jquery / src / effects / support.js @ 0aee3c58
1 | 0aee3c58 | Assos Assos | define([ |
---|---|---|---|
2 | "../var/strundefined",
|
||
3 | "../var/support"
|
||
4 | ], function( strundefined, support ) {
|
||
5 | |||
6 | (function() {
|
||
7 | var shrinkWrapBlocksVal;
|
||
8 | |||
9 | support.shrinkWrapBlocks = function() { |
||
10 | if ( shrinkWrapBlocksVal != null ) { |
||
11 | return shrinkWrapBlocksVal;
|
||
12 | } |
||
13 | |||
14 | // Will be changed later if needed.
|
||
15 | shrinkWrapBlocksVal = false;
|
||
16 | |||
17 | // Minified: var b,c,d
|
||
18 | var div, body, container;
|
||
19 | |||
20 | body = document.getElementsByTagName( "body" )[ 0 ]; |
||
21 | if ( !body || !body.style ) {
|
||
22 | // Test fired too early or in an unsupported environment, exit.
|
||
23 | return;
|
||
24 | } |
||
25 | |||
26 | // Setup
|
||
27 | div = document.createElement( "div" );
|
||
28 | container = document.createElement( "div" );
|
||
29 | container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
|
||
30 | body.appendChild( container ).appendChild( div ); |
||
31 | |||
32 | // Support: IE6
|
||
33 | // Check if elements with layout shrink-wrap their children
|
||
34 | if ( typeof div.style.zoom !== strundefined ) { |
||
35 | // Reset CSS: box-sizing; display; margin; border
|
||
36 | div.style.cssText = |
||
37 | // Support: Firefox<29, Android 2.3
|
||
38 | // Vendor-prefix box-sizing
|
||
39 | "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
|
||
40 | "box-sizing:content-box;display:block;margin:0;border:0;" +
|
||
41 | "padding:1px;width:1px;zoom:1";
|
||
42 | div.appendChild( document.createElement( "div" ) ).style.width = "5px"; |
||
43 | shrinkWrapBlocksVal = div.offsetWidth !== 3;
|
||
44 | } |
||
45 | |||
46 | body.removeChild( container ); |
||
47 | |||
48 | return shrinkWrapBlocksVal;
|
||
49 | }; |
||
50 | |||
51 | })(); |
||
52 | |||
53 | return support;
|
||
54 | |||
55 | }); |