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
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


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?


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.

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.


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.