Is it possible to tint an image with a specific color using CSS without an overlay in a WebKit browser?
Failed attempts
hue-rotate
but couldn't find a way to tint it with a specific color.-webkit-filter: url(#tint)
doesn't work on Chrome.opacity
/box-shadow
css properties with drop-shadow
/opacity
filters don't generate the desired effect.Ideas
hue-rotate
, saturation
, brightness
) to generate its tint? Eventually it will be, using shaders. See the W3C Docs on Filters.
At the moment, what is possible for instance is:
-webkit-filter: grayscale; /*sepia, hue-rotate, invert....*/
-webkit-filter: brightness(50%);
See
Update:
Adobe released its HTML5 based CSS Filter Labs with support for custom filters (Shaders) on supported browsers: