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:

While there are no stand alone tint filter you can make kind of one by composition of existing filters without shading.
Combine sepia to unify the color, then hue-rotate to the color you want it to be tinted with
-webkit-filter: sepia(90%) hue-rotate(90deg); I use borders with an alpha value for my tints, its really an overlay but doesn't use any extra DOM elements making the transition to sepia+hue-rotate simpler when the other browsers get those filters.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With