Hacker News new | ask | show | jobs
by dm2 4378 days ago
Is there a near-zero performance impact for checking all of the human-friendly names in CSS?
1 comments

CSS seems to define about a 150 named colours. One more shouldn't make a noticeable difference.

(there is a list here: https://developer.mozilla.org/en-US/docs/Web/CSS/color_value )