On day 11 I've introduced you to space-separated functional color notations. Early color functions like rgb() and hsl() support both the old comma-separated and the new space-separated syntax.
/* ✅ works */
div {
background-color: rgb(255, 210, 210);
color: hsl(150, 76%, 20%);
}
/* ✅ works */
div {
background-color: rgb(255 210 210);
color: hsl(150 76% 20%);
}
On the other hand, new color functions like lab(), hwb(), lch(), or oklch() only support the space-separated syntax.
/* ✅ works */
div {
background-color: hwb(0deg 82% 0%);
color: lab(33% -31 16);
}
/* ❌ doesn't work */
div {
background-color: hwb(0deg, 82%, 0%);
color: lab(33%, -31, 16);
}My blog doesn't support comments yet, but you can reply via blog@matuzo.at.





