Skip to content

Commit

Permalink
fixes #11048: make sure support tests don't modify the layout of the …
Browse files Browse the repository at this point in the history
…body
  • Loading branch information
mikesherov authored and dmethvin committed Jan 18, 2012
1 parent c0da49f commit 2982abb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/support.js
Expand Up @@ -283,6 +283,10 @@ jQuery.support = (function() {
support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%"; support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";
} }


if ( typeof container.style.zoom !== "undefined" ) {

This comment has been minimized.

Copy link
@jdalton

jdalton Jan 18, 2012

Member

were you able to reproduce the problem?

This comment has been minimized.

Copy link
@mikesherov

mikesherov Jan 18, 2012

Author Member

Yeah, this works. As to why it works, I'm still a bit unsure. Usually, I'd be a bit more diligent as to exactly what the problem is, but this code is being ripped out in 1.8 anyway, along with a bunch of other support tests.

container.style.zoom = 1;
}

body.removeChild( container ); body.removeChild( container );
div = container = null; div = container = null;


Expand Down

0 comments on commit 2982abb

Please sign in to comment.