Skip to content
Browse files

Ensure IE9 gradient background runtimeStyle gets removed when -pie-ba…

…ckground becomes inactive.
  • Loading branch information...
1 parent a3423c5 commit 892d30a1f57eb42305c35f15a778d60245712fce Jason Johnston committed
Showing with 3 additions and 1 deletion.
  1. +3 −1 sources/IE9BackgroundRenderer.js
View
4 sources/IE9BackgroundRenderer.js
@@ -220,6 +220,8 @@ PIE.IE9BackgroundRenderer = PIE.RendererBase.newRenderer( {
return svg.join( '' );
},
- destroy: function() {}
+ destroy: function() {
+ this.targetElement.runtimeStyle.background = '';
+ }
} );

3 comments on commit 892d30a

@shichuan

i tried running the build script again with this new update, it seems the new htc file doesn't work in IE9, is there anything need to change in CSS also?

@lojjic
Owner

No, the CSS does not need to change. Check the discussion in this forum topic, and post details about your setup/code if you still have issues. http://css3pie.com/forum/viewtopic.php?f=4&t=933

A few users have had issues where IE9 is more strict about the text/x-component content-type, so make sure you're serving that correctly.

@shichuan

arh, thanks man, i think i forgot to update from beta. thanks :)

Please sign in to comment.
Something went wrong with that request. Please try again.