For some reason, the style element inside the svg does not have a .sheet property. A workaround is to create the style element in js and append it to the svg, or move it outside the svg and let the styles cascade. A strange bug...
And yet there is only one browser that 5 people always comment about saying "not working" when there's some kind of web thing posted on HN. Those tests don't seem to reflect reality.
I still recall a time 3 years ago when they didn't even have working webrtc support hah.
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...
Comments (169) 64 threads
Show all comments
Showing thread 7 of 64
Fine in Chrome. Thanks for this colour wheel, very handy reference.
It has an extra comma at the end. Safari throws when passed to: c.setAttribute('points', points)
https://github.com/arantius/web-color-wheel/issues/1
Continue this thread — 3 replies
https://imgur.com/a/Tsx9pEZ
Webkit implementing web standards: https://media.tenor.com/images/7d9d11dacf3d5c4043c1da7cf5f11...
I use Chrome for its developer tools exclusively.
Continue this thread — 1 reply
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
Continue this thread — 1 reply