This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
faq [2018/03/15 15:33]
tabatkins [Selectors that Depend on Layout] Explanation of why :hover isn't as bad.
faq [2018/10/04 16:21] (current)
tabatkins [Adding more named colors]
Line 288: Line 288:
 +===== Adding more named colors =====
 +=== Question ===
 +Can we add new named colors to CSS?
 +=== Answer ===
 +== more details ==
 +The built-in set of named colors in CSS is weird and bad, and we keep them mainly for legacy interop reasons. There'​s very little utility to adding to a set of colors where you have to look up the proper spelling and remember what actual colors the names map to.
 +Naming colors can be done in stylesheets using custom properties. It is not likely we will ever add more names to the built-in set.
 +=== References ===
faq.1521153218.txt.gz · Last modified: 2018/03/15 15:33 by tabatkins
Recent changes RSS feed Valid XHTML 1.0 Valid CSS Driven by DokuWiki