Skip to content
Permalink
Browse files

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

…body
  • Loading branch information...
mikesherov authored and dmethvin committed Dec 26, 2011
1 parent c0da49f commit 2982abbb13454bd4bdf0299f1183fb0d8c02f02d
Showing with 4 additions and 0 deletions.
  1. +4 −0 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" ) {

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 );
div = container = null;

0 comments on commit 2982abb

Please sign in to comment.
You can’t perform that action at this time.