This is what it looks like on Chrome
This is what it looks like on Firefox
Here is my CSS chunk:
.color-legend {
width: 100px;
height: 20px;
background:
linear-gradient(
to right in oklch decreasing hue,
oklch(100% 0 9) 6% 6%,
oklch(0% 0.5 15) 93% 93%
);
}
I need for them both to look like the Chrome version.
I tried using -moz-linear-gradient
and I tried add multiple colors to the gradient but neither solved the issue
2
Answers
Added a Fallback block and it works for chrome. Please see the below code,
Maybe try using RGBA colors? I tried the RGBA version for a simple span element, and it works for both chrome and Firefox. You could, of course, go to the "Inspect" option in both browsers and see how it is reading the style.