0
<h1 style="background-color: hsla(302, 59, 65, .6);">
foobar
</h1>

https://jsfiddle.net/qoayrhem/1/

In the firefox debugger it says this is an invalid rule.

chovy
  • 72,281
  • 52
  • 227
  • 295
  • Not for me. I had to add `%` to 2nd and 3rd numbers for some reason. https://jsfiddle.net/j3kprcbx/ – chovy Nov 21 '21 at 15:31
  • You're right. I first tried with another value (not your values) and thought it's working... this is why I removed my comment fast! – Shahriar Nov 21 '21 at 15:38

1 Answers1

0

The second and third values should have %.

https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/hsla()#values

<h1 style="background-color: hsla(302, 59%, 65%, 0.6);">
foobar
</h1>
Shahriar
  • 1,855
  • 2
  • 21
  • 45