Remove unnecessary background setting in support now that we have the div reversion. Test added.

This commit is contained in:
timmywil 2011-05-25 13:58:05 -04:00
parent b43910a496
commit e5457a5a1f
2 changed files with 5 additions and 3 deletions

View file

@ -147,9 +147,7 @@ jQuery.support = (function() {
width: 0, width: 0,
height: 0, height: 0,
border: 0, border: 0,
margin: 0, margin: 0
// Set background to avoid IE crashes when removing (#9028)
background: "none"
}; };
if ( body ) { if ( body ) {
jQuery.extend( testElementStyle, { jQuery.extend( testElementStyle, {

View file

@ -117,3 +117,7 @@ v\:oval { behavior:url(#default#VML); display:inline-block; }
tt { display: none; } tt { display: none; }
sup { display: none; } sup { display: none; }
dfn { display: none; } dfn { display: none; }
/* #9239 Attach a background to the body( avoid crashes in removing the test element in support ) */
body { background: url(http://www.ctemploymentlawblog.com/test.jpg) no-repeat -1000px 0; }