craftyjs/Crafty — pull request #507 by starwed (2013-07-10 07:11:53+00:00)
Title: Scale sprites on DOM entities

This patch uses the CSS3 background-size property to scale sprites on DOM entities. It should work on IE9+, but not IE8 or below.

It was necessary for DOM to pass the sprite's h/w in addition to its x/y coords.