Browse files

fixes #11048: make sure support tests don't modify the layout of the …

…body
  • Loading branch information...
1 parent c0da49f commit 2982abbb13454bd4bdf0299f1183fb0d8c02f02d @mikesherov mikesherov committed with dmethvin Dec 26, 2011
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/support.js
View
4 src/support.js
@@ -283,6 +283,10 @@ jQuery.support = (function() {
support.pixelMargin = ( window.getComputedStyle( div, null ) || { marginTop: 0 } ).marginTop !== "1%";
}
+ if ( typeof container.style.zoom !== "undefined" ) {
@jdalton
jQuery Foundation member
jdalton added a note Jan 18, 2012

were you able to reproduce the problem?

@mikesherov
jQuery Foundation 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
+ container.style.zoom = 1;
+ }
+
body.removeChild( container );
div = container = null;

0 comments on commit 2982abb

Please sign in to comment.