Back to front pageView on Hacker News (opens in a new tab)Show HN: A color picker for named web colors (opens in a new tab)arantius.github.io731 pointsby arantius (on Hacker News)4 years agoI had this idea kicking around in my head for quite a while. Took an evening to make this, and a short morning to polish it a bit. So here it is!arantius.github.io (opens in a new tab)Named Colors WheelComments (169) 64 threadsShow all commentsShowing thread 7 of 64[-]somid34 years ago4 replies#Doesn't work for the latest Safari browser.evantahler4 years ago#iOS and MacOS. It’s ok in chrome.digitalsankhara4 years ago#Seconded. Safari Version 16.0Fine in Chrome. Thanks for this colour wheel, very handy reference.[-]arantius4 years ago4 replies#Interesting, can you be more specific? Developed in Firefox, reports that Chrome is OK. I don't have a Mac to test with.[-]lioeters4 years ago1 reply#As per another comment, this is the problematic line: points += `${s.x} ${s.y}, `;It has an extra comma at the end. Safari throws when passed to: c.setAttribute('points', points)JKCalhoun4 years ago#Yeah, Chrome don't like either, but apparently Chrome does not throw.r22224 years ago#Shows just pretty much empty screen, with one black polygon at the top: https://i.ibb.co/3Ms9m6T/SCR-20221121-qgw.jpg[-]halostatue4 years ago1 reply#I found and I think fixed the issue.https://github.com/arantius/web-color-wheel/issues/1panzerboiler4 years ago3 replies#I don't think the real issue is that one. At least in Safari I get this: t = document.createElement("template") t.innerHTML = `` 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.Continue this thread — 3 repliespanzerboiler4 years ago#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...[-]tambourine_man4 years ago2 replies#Yep, Safari latesthttps://imgur.com/a/Tsx9pEZ[-]moffkalast4 years ago2 replies#To the surprise of absolutely nobody.Webkit implementing web standards: https://media.tenor.com/images/7d9d11dacf3d5c4043c1da7cf5f11...tambourine_man4 years ago1 reply#I’ve been developing for the web for 25 years and Safari is my browser of choice.I use Chrome for its developer tools exclusively.Continue this thread — 1 replyalwillis4 years ago4 replies#WebKit is doing quite well these days: https://wpt.fyi/interop-2022Continue this thread — 4 repliesalwillis4 years ago#Same… and I’m running Safari 16.2 on the latest public beta of macOS Ventura.
Show HN: A color picker for named web colors (opens in a new tab)arantius.github.io731 pointsby arantius (on Hacker News)4 years ago
digitalsankhara4 years ago#Seconded. Safari Version 16.0Fine in Chrome. Thanks for this colour wheel, very handy reference.
arantius4 years ago4 replies#Interesting, can you be more specific? Developed in Firefox, reports that Chrome is OK. I don't have a Mac to test with.
lioeters4 years ago1 reply#As per another comment, this is the problematic line: points += `${s.x} ${s.y}, `;It has an extra comma at the end. Safari throws when passed to: c.setAttribute('points', points)
r22224 years ago#Shows just pretty much empty screen, with one black polygon at the top: https://i.ibb.co/3Ms9m6T/SCR-20221121-qgw.jpg
halostatue4 years ago1 reply#I found and I think fixed the issue.https://github.com/arantius/web-color-wheel/issues/1
panzerboiler4 years ago3 replies#I don't think the real issue is that one. At least in Safari I get this: t = document.createElement("template") t.innerHTML = `` 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.
panzerboiler4 years ago#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...
moffkalast4 years ago2 replies#To the surprise of absolutely nobody.Webkit implementing web standards: https://media.tenor.com/images/7d9d11dacf3d5c4043c1da7cf5f11...
tambourine_man4 years ago1 reply#I’ve been developing for the web for 25 years and Safari is my browser of choice.I use Chrome for its developer tools exclusively.
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
Continue this thread — 4 replies