3 ms·
Yep. Webkit's actual masking is considerably more flexible. For instance, you can use one image as a mask, then color it (by setting the background color) to w
by alanh 15y ago
Yep.
Webkit's actual masking is considerably more flexible. For instance, you can use one image as a mask, then color it (by setting the background color) to whatever you want… then varying the opacity… and it doesn't only work on solid backgrounds. (This is PERFECT for close buttons on your notifications, if you use e.g. green for success and red for failure, and now you don’t need to fire up an image editor when you tweak the color palette or add another class of notification.)
Of course, it’s quite limited in cross-browser applicability. http://caniuse.com/#feat=css-masks http://caniuse.com/#feat=css-masks