I have the following snippet, and it works in all browsers except(big suprise) Internet explorer. The image remains black, without shadows, without anything really in IE.
I am not trying to get the DXTransform working, I want to use the css3 filter feature. I was hoping -ms-filter or filter would trigger the css3 filter, but I can't find the right CSS nice to get this feature working.
It should work as far as I can tell, it's an inline-block element, has all the bells and whistles... yet it's just a boring background image(At least THAT part works, it's something).
.uiicon {
width:64px;
height:64px;
display:inline-block;
-webkit-background-size: cover; /* For WebKit*/
-moz-background-size: cover; /* Mozilla*/
-o-background-size: cover; /* Opera*/
background-size: cover;
}
.uiicon-filter-darkgreen-dropshadow {
-webkit-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(4px 4px 7px rgba(0,0,0,0.2));
-moz-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(4px 4px 7px rgba(0,0,0,0.2));
-o-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(4px 4px 7px rgba(0,0,0,0.2));
-ms-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(4px 4px 7px rgba(0,0,0,0.2));
filter:invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(4px 4px 7px rgba(0,0,0,0.2));
}
.uiicon-filter-darkgreen-dropshadow:hover {
-webkit-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(0px 0px 7px rgba(0,0,0,0.5));
-moz-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(0px 0px 7px rgba(0,0,0,0.5));
-o-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(0px 0px 7px rgba(0,0,0,0.5));
-ms-filter: invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(0px 0px 7px rgba(0,0,0,0.5));
filter:invert(33%) sepia(89%) hue-rotate(95deg) saturate(255%) drop-shadow(0px 0px 7px rgba(0,0,0,0.5));
cursor:pointer;
}
.icon1 {
background-image: url("https://i.imgur.com/PGy70kn.png");
background-image:url("https://i.imgur.com/PGy70kn.png"),none;
background-position: top left;
background-repeat: no-repeat;
width: 200px;
height: 50px;
}
<div class="uiicon icon1 uiicon-filter-darkgreen-dropshadow"></div>