3 ms·
Full blending, or just masking? i.e. can alpha values take on the full range from 0-1, or are they limited to full on or full off?
by wnoise 6y ago
Full blending, or just masking? i.e. can alpha values take on the full range from 0-1, or are they limited to full on or full off?
- microcolonel 6y agoLooks like mask is standard now. In Webkit it is behind the -webkit-* prefix, and it only implements mask-image (which is what you want anyway). -webkit-mask-image does exactly what you're looking for (poorly) :+ ) The other way to do it is SVG, but if you want that to be data efficient, you generally end up with three HTTP requests at two levels for a single image, or you have base64 and it has to be gzipped or it's larger.