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 05adce8 commit 67540fdCopy full SHA for 67540fd
tests/unit/effects/effects_scale.js
@@ -53,13 +53,13 @@ function suite( position ) {
53
$(function() {
54
suite( "absolute" );
55
suite( "relative" );
56
- var fixed = $.support.fixedPosition;
57
- // jQuery < 1.7 uses $.offset.supportsFixedPosition
58
- if ( fixed === undefined ) {
59
- $.offset.initialize();
60
- fixed = $.offset.supportsFixedPosition;
61
- }
62
- if ( fixed ) {
+ var fixedElem = $( "<div>" )
+ .css({
+ position: "fixed",
+ top: 10
+ })
+ .appendTo( "body" );
+ if ( fixedElem.offset().top === 10 ) {
63
suite( "fixed" );
64
}
65
});
0 commit comments