Skip to content

Commit 503b88f

Browse files
feat(css): Update syntax for gradient related features (#949)
1 parent f9775b1 commit 503b88f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

css/syntaxes.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@
3333
"syntax": "<angle> | <percentage>"
3434
},
3535
"angular-color-hint": {
36-
"syntax": "<angle-percentage>"
36+
"syntax": "<angle-percentage> | <zero>"
3737
},
3838
"angular-color-stop": {
39-
"syntax": "<color> && <color-stop-angle>?"
39+
"syntax": "<color> <color-stop-angle>?"
4040
},
4141
"angular-color-stop-list": {
42-
"syntax": "[ <angular-color-stop> [, <angular-color-hint>]? ]# , <angular-color-stop>"
42+
"syntax": "<angular-color-stop> , [ <angular-color-hint>? , <angular-color-stop> ]#?"
4343
},
4444
"animateable-feature": {
4545
"syntax": "scroll-position | contents | <custom-ident>"
@@ -168,13 +168,13 @@
168168
"syntax": "<color-stop-length> | <color-stop-angle>"
169169
},
170170
"color-stop-angle": {
171-
"syntax": "<angle-percentage>{1,2}"
171+
"syntax": "[ <angle-percentage> | <zero> ]{1,2}"
172172
},
173173
"color-stop-length": {
174174
"syntax": "<length-percentage>{1,2}"
175175
},
176176
"color-stop-list": {
177-
"syntax": "[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"
177+
"syntax": "<linear-color-stop> , [ <linear-color-hint>? , <linear-color-stop> ]#?"
178178
},
179179
"colorspace-params": {
180180
"syntax": "[<custom-params> | <predefined-rgb-params> | <xyz-params>]"

0 commit comments

Comments
 (0)