Skip to content

Commit

Permalink
chore: update linear-gradient syntax to use optional color-interpolat…
Browse files Browse the repository at this point in the history
…ion-method (#766)

update linear-gradient syntax to use optional color-interpolation-method

Co-authored-by: Brian Thomas Smith <brian@smith.berlin>
  • Loading branch information
JayaKrishnaNamburu and bsmth authored Sep 17, 2024
1 parent 991632c commit 9d0f4c5
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,9 @@
"color-stop-list": {
"syntax": "[ <linear-color-stop> [, <linear-color-hint>]? ]# , <linear-color-stop>"
},
"color-interpolation-method": {
"syntax": "in [ <rectangular-color-space> | <polar-color-space> <hue-interpolation-method>? ]"
},
"combinator": {
"syntax": "'>' | '+' | '~' | [ '||' ]"
},
Expand Down Expand Up @@ -356,6 +359,9 @@
"hue-rotate()": {
"syntax": "hue-rotate( <angle> )"
},
"hue-interpolation-method": {
"syntax": "[ shorter | longer | increasing | decreasing ] hue"
},
"hwb()": {
"syntax": "hwb( [<hue> | none] [<percentage> | none] [<percentage> | none] [ / [<alpha-value> | none] ]? )"
},
Expand Down Expand Up @@ -447,7 +453,7 @@
"syntax": "<color> <color-stop-length>?"
},
"linear-gradient()": {
"syntax": "linear-gradient( [ <angle> | to <side-or-corner> ]? , <color-stop-list> )"
"syntax": "linear-gradient( [ [ <angle> | to <side-or-corner> ] || <color-interpolation-method> ]? , <color-stop-list> )"
},
"log()": {
"syntax": "log( <calc-sum>, <calc-sum>? )"
Expand Down Expand Up @@ -596,6 +602,9 @@
"polygon()": {
"syntax": "polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"
},
"polar-color-space": {
"syntax": "hsl | hwb | lch | oklch"
},
"position": {
"syntax": "[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | <length-percentage> ] [ top | center | bottom | <length-percentage> ]? | [ [ left | right ] <length-percentage> ] && [ [ top | bottom ] <length-percentage> ] ]"
},
Expand Down Expand Up @@ -626,6 +635,9 @@
"ray-size": {
"syntax": "closest-side | closest-corner | farthest-side | farthest-corner | sides"
},
"rectangular-color-space": {
"syntax": "srgb | srgb-linear | display-p3 | a98-rgb | prophoto-rgb | rec2020 | lab | oklab | xyz | xyz-d50 | xyz-d65"
},
"relative-selector": {
"syntax": "<combinator>? <complex-selector>"
},
Expand Down

0 comments on commit 9d0f4c5

Please sign in to comment.