image-rendering DOM equivalent
What's the DOM equivalent of the image-rendering
CSS property in Firefox? i.e. is there a way to set it aside from doing element.style.cssText = "image-rendering: -moz-crisp-edges开发者_如何学JAVA;"
?
Note: browser compatibility is not an issue.
In firefox 4.0rc1 I can use
element.style.imageRendering = "-moz-crisp-edges";
without problems.
Like with any other css property just switch from hyphen-lowercase to camelCase.
精彩评论