Skip to content

Commit e5457a5

Browse files
author
timmywil
committed
Remove unnecessary background setting in support now that we have the div reversion. Test added.
1 parent b43910a commit e5457a5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/support.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,7 @@ jQuery.support = (function() {
147147
width: 0,
148148
height: 0,
149149
border: 0,
150-
margin: 0,
151-
// Set background to avoid IE crashes when removing (#9028)
152-
background: "none"
150+
margin: 0
153151
};
154152
if ( body ) {
155153
jQuery.extend( testElementStyle, {

test/data/testsuite.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,7 @@ v\:oval { behavior:url(#default#VML); display:inline-block; }
117117
tt { display: none; }
118118
sup { display: none; }
119119
dfn { display: none; }
120+
121+
/* #9239 Attach a background to the body( avoid crashes in removing the test element in support ) */
122+
body { background: url(http://www.ctemploymentlawblog.com/test.jpg) no-repeat -1000px 0; }
123+

0 commit comments

Comments
 (0)