From 72338c05b096c449966cc0f1327e95fed8349853 Mon Sep 17 00:00:00 2001 From: Liu YongLiang <41845017+tlylt@users.noreply.github.com> Date: Sat, 7 Jan 2023 09:33:38 +0800 Subject: [PATCH] Remove mentioning of string parameters for the CSS color() function (#23435) Fixes https://github.com/mdn/content/issues/12209 --- files/en-us/web/css/color_value/color/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/en-us/web/css/color_value/color/index.md b/files/en-us/web/css/color_value/color/index.md index a86277be491ab9d..43bb9faa45f1b07 100644 --- a/files/en-us/web/css/color_value/color/index.md +++ b/files/en-us/web/css/color_value/color/index.md @@ -30,11 +30,11 @@ color(display-p3 1 0.5 0 / .5); ### Values -- Functional notation: `color( [ [ | ]? [ + | ] [ / ]? ] )` +- Functional notation: `color( [ [ | ]? [ + ] [ / ]? ] )` - - : `[ | ]` is an optional {{cssxref("ident")}} or {{cssxref("dashed-ident")}} denoting the colorspace. If this is an `` it denotes one of the predefined colorspaces (such as display-p3); if it is a \ it denotes a custom colorspace, defined by a [`@color-profile`](/en-US/docs/Web/CSS/@color-profile) rule. + - : `[ | ]` is an optional {{cssxref("ident")}} or {{cssxref("dashed-ident")}} denoting the colorspace. If this is an `` it denotes one of the predefined colorspaces (such as display-p3); if it is a `` it denotes a custom colorspace, defined by a [`@color-profile`](/en-US/docs/Web/CSS/@color-profile) rule. - `[ + | ]` is either one or more {{cssxref("number")}} or {{cssxref("percentage")}} values providing the parameter values that the colorspace takes, or a {{cssxref("string")}} giving the name of a color defined by the colorspace. + `[ + ]` is one or more {{cssxref("number")}} or {{cssxref("percentage")}} values providing the parameter values that the colorspace takes. `/ ` (alpha) can be a {{cssxref("<number>")}} between `0` and `1`, or a {{cssxref("<percentage>")}}, where the number `1` corresponds to `100%` (full opacity).