d3-color icon indicating copy to clipboard operation
d3-color copied to clipboard

Supporting CSS color level 4

Open Ayc0 opened this issue 3 years ago • 3 comments

What do you think about supporting CSS colors level 4 https://www.w3.org/TR/css-color-4/:

  • rgb rgb(12 53 80) and rgb(12 53 80 / 0.5): https://www.w3.org/TR/css-color-4/#rgb-functions
  • hsl: hsl(120deg 100% 50%) and hsl(120deg 100% 50% / 0.5): https://www.w3.org/TR/css-color-4/#the-hsl-notation
  • lab: lab(12% 39 20) and lab(12% 39 20 / 0.5): https://www.w3.org/TR/css-color-4/#specifying-lab-lch
  • lch: lch(29% 44.2 27) and lch(29% 44.2 27 / 0.5): https://www.w3.org/TR/css-color-4/#specifying-lab-lch

Ayc0 avatar Sep 23 '21 20:09 Ayc0

see also https://github.com/d3/d3-color/pull/71

Fil avatar Sep 24 '21 08:09 Fil

Ohhh I looked at the opened issue but I haven't checked the opened PRs

Thanks 🙇‍♂️

Ayc0 avatar Sep 24 '21 11:09 Ayc0

I re-opened this issue and the related PR isn't merged yet. So it'll make it easier to track the support for CSS level 4 (if people want to link this issue)

Ayc0 avatar Apr 22 '23 08:04 Ayc0