It has an extra comma at the end. Safari throws when passed to: c.setAttribute('points', points)
t = document.createElement("template")
t.innerHTML = `<style id="outside"></style><svg><style id="inside"></style></svg>`
t.content.querySelector("#outside").sheet // null
t.content.querySelector("#inside").sheet // undefined
That means that the .sheet property is present on the style element, but not if it is inside an svg element.https://developer.mozilla.org/en-US/docs/Web/API/SVGStyleEle...
The fix that I suggested does seem to produce a working colour wheel, however.
Webkit implementing web standards: https://media.tenor.com/images/7d9d11dacf3d5c4043c1da7cf5f11...
I use Chrome for its developer tools exclusively.
I still recall a time 3 years ago when they didn't even have working webrtc support hah.
That’s a long time ago in web years. Things are different now.
For example, Safari supports the oklch and oklab color spaces starting with Safari Technology Preview 137, released December 2021.
It’s November 2022 and Chrome still doesn’t support them yet, though they are expected to be enabled by default in Chrome 110, due next month.
And of course the most anticipated selector probably ever :has() shipped in Safari 15.4 back in March [1]; Chrome didn’t ship it until August and Firefox still doesn’t have enabled by default—it’s behind a flag due to bugs.
The oklab and oklch color spaces solve a bunch of color issues with RGB and HLS [2].
This is not WebKit from 3 years ago.
[1]: https://webkit.org/blog/13096/css-has-pseudo-class/
[2]: https://evilmartians.com/chronicles/oklch-in-css-why-quit-rg...
Turned out pretty well
Fine in Chrome. Thanks for this colour wheel, very handy reference.