diff --git a/css/functions.json b/css/functions.json index 1c483e95..7b4f8d0f 100644 --- a/css/functions.json +++ b/css/functions.json @@ -245,7 +245,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/grayscale" }, "hsl()": { - "syntax": "hsl( [ / ]? ) | hsl( , , , ? )", + "syntax": "hsl( , , , ? ) | hsl( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", "groups": [ "CSS Color" ], @@ -253,7 +253,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/hsl" }, "hsla()": { - "syntax": "hsla( [ / ]? ) | hsla( , , , ? )", + "syntax": "hsla( , , , ? ) | hsla( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", "groups": [ "CSS Color" ], @@ -269,7 +269,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/hue-rotate" }, "hwb()": { - "syntax": "hwb( [ | none] [ | none] [ | none] [ / [ | none] ]? )", + "syntax": "hwb( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )", "groups": [ "CSS Color" ], @@ -554,7 +554,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-radial-gradient" }, "rgb()": { - "syntax": "rgb( {3} [ / ]? ) | rgb( {3} [ / ]? ) | rgb( #{3} , ? ) | rgb( #{3} , ? )", + "syntax": "rgb( #{3} , ? ) | rgb( #{3} , ? ) | rgb( [ | | none ]{3} [ / [ | none ] ]? )", "groups": [ "CSS Color" ], @@ -562,7 +562,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/rgb" }, "rgba()": { - "syntax": "rgba( {3} [ / ]? ) | rgba( {3} [ / ]? ) | rgba( #{3} , ? ) | rgba( #{3} , ? )", + "syntax": "rgba( #{3} , ? ) | rgba( #{3} , ? ) | rgba( [ | | none ]{3} [ / [ | none ] ]? )", "groups": [ "CSS Color" ], diff --git a/css/syntaxes.json b/css/syntaxes.json index 59d0cd7b..f5727d0d 100644 --- a/css/syntaxes.json +++ b/css/syntaxes.json @@ -399,10 +399,10 @@ "syntax": "[ historical-ligatures | no-historical-ligatures ]" }, "hsl()": { - "syntax": "hsl( [ / ]? ) | hsl( , , , ? )" + "syntax": "hsl( , , , ? ) | hsl( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )" }, "hsla()": { - "syntax": "hsla( [ / ]? ) | hsla( , , , ? )" + "syntax": "hsla( , , , ? ) | hsla( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )" }, "hue": { "syntax": " | " @@ -414,7 +414,7 @@ "syntax": "hue-rotate( [ | ]? )" }, "hwb()": { - "syntax": "hwb( [ | none] [ | none] [ | none] [ / [ | none] ]? )" + "syntax": "hwb( [ | none ] [ | | none ] [ | | none ] [ / [ | none ] ]? )" }, "hypot()": { "syntax": "hypot( # )" @@ -753,10 +753,10 @@ "syntax": "reversed( )" }, "rgb()": { - "syntax": "rgb( {3} [ / ]? ) | rgb( {3} [ / ]? ) | rgb( #{3} , ? ) | rgb( #{3} , ? )" + "syntax": "rgb( #{3} , ? ) | rgb( #{3} , ? ) | rgb( [ | | none ]{3} [ / [ | none ] ]? )" }, "rgba()": { - "syntax": "rgba( {3} [ / ]? ) | rgba( {3} [ / ]? ) | rgba( #{3} , ? ) | rgba( #{3} , ? )" + "syntax": "rgba( #{3} , ? ) | rgba( #{3} , ? ) | rgba( [ | | none ]{3} [ / [ | none ] ]? )" }, "rotate()": { "syntax": "rotate( [ | ] )"