3 ms·
Fun thing is that the system colours were originally written in lowercase <https://www.w3.org/TR/WD-CSS2-971104/ui.html#h-18.2 https://www.w3.org/TR/WD-CSS2-971
by chrismorgan 4y ago
Fun thing is that the system colours were originally written in lowercase <https://www.w3.org/TR/WD-CSS2-971104/ui.html#h-18.2 https://www.w3.org/TR/WD-CSS2-971104/ui.html#h-18.2>, then they dallied with kebab-case <https://www.w3.org/TR/1998/PR-CSS2-19980324/ui.html#system-colors https://www.w3.org/TR/1998/PR-CSS2-19980324/ui.html#system-c...>, but they finally settled on TitleCase <https://www.w3.org/TR/1998/REC-CSS2-19980512/ui.html#system-colors https://www.w3.org/TR/1998/REC-CSS2-19980512/ui.html#system-...>.
As for currentColor, it follows SVG’s naming convention instead of CSS’s, because it was invented in SVG <https://www.w3.org/TR/SVG10/painting.html#SpecifyingPaint https://www.w3.org/TR/SVG10/painting.html#SpecifyingPaint> and only adopted into CSS proper because people thought, “hey, that’s a useful feature, and we like aligning HTML-CSS and SVG-CSS where possible”. (Not sure if it was case-sensitive or not; element and attribute names are, so <svg> gets a viewBox attribute, and viewbox won’t work, which I’ve seen inline-SVG-unaware HTML minifiers mangle to.)
It has actually comparatively recently been partially renamed to currentcolor. https://www.w3.org/TR/css-color-4/ https://www.w3.org/TR/css-color-4/ mostly refers to it as currentcolor, but still has currentColor in a few places. Not sure if these are editing errors or not. My favourite is: “The serialized form of ‘currentColor’ is the string "currentcolor".”