css.land icon indicating copy to clipboard operation
css.land copied to clipboard

Safari 15 supports `lch(...)` syntax natively

Open j-f1 opened this issue 4 years ago • 0 comments

Currently, the displayed color is rendered with either rgb(...) or color(display-p3 ...) syntax. However, Safari 15 supports lch(...) syntax natively. It would be awesome to use the native syntax if possible!


I tried manually copy-pasting the produced lch() color into the --color style attribute, and got a slightly brighter color (lch(49% 132 360) on top, color(display-p3 0.8423 0 0.4685) on the bottom)

Screenshot_2021-10-26 16 50 39 .

j-f1 avatar Oct 26 '21 20:10 j-f1