Skip to content

Commit de14073

Browse files
feat(css): Sync syntax for some css functions (#938)
1 parent bf5a713 commit de14073

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

css/functions.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -554,15 +554,15 @@
554554
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/repeating-radial-gradient"
555555
},
556556
"rgb()": {
557-
"syntax": "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? ) | rgb( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
557+
"syntax": "rgb( <percentage>#{3} , <alpha-value>? ) | rgb( <number>#{3} , <alpha-value>? ) | rgb( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
558558
"groups": [
559559
"CSS Color"
560560
],
561561
"status": "standard",
562562
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/color_value/rgb"
563563
},
564564
"rgba()": {
565-
"syntax": "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? ) | rgba( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
565+
"syntax": "rgba( <percentage>#{3} , <alpha-value>? ) | rgba( <number>#{3} , <alpha-value>? ) | rgba( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )",
566566
"groups": [
567567
"CSS Color"
568568
],

css/syntaxes.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
"syntax": "<color-base> | currentColor | <system-color> | <light-dark()> | <deprecated-system-color>"
151151
},
152152
"color()": {
153-
"syntax": "color( [from <color>]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )"
153+
"syntax": "color( [ from <color> ]? <colorspace-params> [ / [ <alpha-value> | none ] ]? )"
154154
},
155155
"color-base": {
156156
"syntax": "<hex-color> | <color-function> | <named-color> | <color-mix()> | transparent"

0 commit comments

Comments
 (0)