I have a header that when hovered over, changes color to be slightly clear and to have a black outline (I make with 4 text-shadows).
This does not work when I use hsla() to define the color, though. The color is set to black with 100% opacity, and the text-shadows are off.
When I define the color with a websafe color (ie white), everything works fine.
I've posted a jsfiddle to show the problem and prove there is nothing wrong with my syntax (as far as I can tell): https://jsfiddle.net/TheInternetIO/Lxj12uje/3/ and my css (for the problem case):
h2:hover{
text-shadow:
-1px -1px 0 #000,
1px -1px 0 #000,
-1px 1px 0 #000,
1px 1px 0 #000;
color: hsla(0, 0%, 0%, .2);
}
Why is this happening?