This is a cool idea, but it will not work with the white image, as you suggest. You can do this with a color image, but not all are white. I tried the following in Safari using the webkit version of the CSS filter:
<div style="background-color:#FFF; -webkit-filter: hue-rotate(90deg); width:100px; height:100px; border:1px solid #000;"></div>
But the box remains white. If I switch the color to blue as follows:
<div style="background-color:#00F; -webkit-filter: hue-rotate(90deg); width:100px; height:100px; border:1px solid #000;"></div>
I get a red frame. This is due to the fact that the filter works with a hue value that is not available in white or black.
bitfiddler Jun 28 '13 at 5:11 2013-06-28 05:11
source share