set background none on fakebody, ya? #10

Closed
scottjehl opened this Issue Mar 16, 2012 · 4 comments

Projects

None yet

4 participants

@scottjehl
Collaborator

Just to bulletproof the body background image crash sitation...

fakeBody.style.background = "none";
@paulirish paulirish closed this in af2c54a Mar 16, 2012
@lnrb0b

Came to raise this issue, found it fixed - awesome!
However I now get a warning "invalid argument" for the added line in IE 7 and 8.
Changing it to
fakeBody.style.cssText = "background:none!important";
fixes.

Think IE is complaining about inclusion of "!important"

@paulirish paulirish reopened this Mar 26, 2012
@alanviner
fakeBody.style.background = "none";

also works for IE7/8

@paulirish paulirish closed this in 795df18 Apr 5, 2012
@paulirish
Owner

i think it woulda worked in backgroundImage but not background shorthand.

IE is stupid, btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment