diff --git a/css-color/Overview.bs b/css-color/Overview.bs index 21933a03162..0de32cdc0d5 100644 --- a/css-color/Overview.bs +++ b/css-color/Overview.bs @@ -171,8 +171,8 @@ The RGB functions: ''rgb()'' and ''rgba()'' Its syntax is:
-	rgb() = rgb( <>#{3} [, <> ]? )
-	rgba() = rgba( <>#{3} , <> )
+	rgb() = rgb( <>#{3} , <>? )
+	rgba() = rgba( <>#{3} , <>? )
 	<rgb-component> = <> | <>
 	<alpha-value> = <> | <>
 	
@@ -197,7 +197,6 @@ The RGB functions: ''rgb()'' and ''rgba()'' Issue: The transfer function is undefined outside the range 0% to 100%. - The final argument, the <>, specifies the alpha of the color. If given as a <>, the useful range of the value is ''0'' (representing a fully transparent color) @@ -209,6 +208,10 @@ The RGB functions: ''rgb()'' and ''rgba()'' but are clamped to the ranges defined here at computed-value time. If omitted, it defaults to ''100%''. + Note: For legacy reasons, the ''rgb()'' function and ''rgba()'' functions both exist, + but are aliases of each other. + Both of them allow specifying an RGB color with an optional alpha value. +

The RGB hexadecimal notations: ''#RRGGBB''

@@ -709,8 +712,8 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions The syntax of the ''hsl()'' function is:
-	hsl() = hsl( <>, <>, <> [, <> ]? )
-	hsla() = hsla( <>, <>, <>, <> )
+	hsl() = hsl( <>, <>, <>, <>? )
+	hsla() = hsla( <>, <>, <>, <>? )
 	<hue> = <> | <>
 	
@@ -743,7 +746,7 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions but this specification does not define how to do so. The final argument specifies the alpha channel of the color. - It's interpreted identically to the fourth argument of the ''rgba()'' function. + It's interpreted identically to the fourth argument of the ''rgb()'' function. If omitted, it defaults to ''100%''.
@@ -771,6 +774,10 @@ HSL Colors: ''hsl()'' and ''hsla()'' functions
+ Note: For legacy reasons, the ''hsl()'' function and ''hsla()'' functions both exist, + but are aliases of each other. + Both of them allow specifying an HSL color with an optional alpha value. +

Converting HSL colors to RGB colors