2
I am doing a project where I should apply a mask (PNG or SVG) on an image < img >.
I’m using
.svg-clipped {
mask-image: url("../img/desktop_tds_hist.png") ;
-webkit-mask-image: url("../img/desktop_tds_hist.png") ;
-webkit-mask-image: url("../img/desktop_tds_hist.png");
-o-mask-image: url("../img/desktop_tds_hist.png");
-moz-mask-image: url("../img/desktop_tds_hist.png");
-webkit-mask-size: 100% 100%;
}
But this function only works in Google Chrome.
Is there an alternative solution? Because I have searched several and I have not found one that would solve my problem.
Hello, Marcelo! Firefox has partial support for Mask-image. You need to put it online and only for SVG, it will not work for PNG.
– user55929
http://caniuse.com/#feat=css-masks according to this site support is limited.
– Jasar Orion
and according to the firefox developer itself is not supported https://developer.mozilla.org/en-US/docs/Web/CSS/mask
– Jasar Orion