From 9d0f4c5b52377868d0277d2bac53e63f3a85ea49 Mon Sep 17 00:00:00 2001 From: Jaya Krishna Namburu Date: Tue, 17 Sep 2024 13:47:07 +0530 Subject: [PATCH] chore: update linear-gradient syntax to use optional color-interpolation-method (#766) update linear-gradient syntax to use optional color-interpolation-method Co-authored-by: Brian Thomas Smith --- css/syntaxes.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/css/syntaxes.json b/css/syntaxes.json index 8bf5d72f..10705c73 100644 --- a/css/syntaxes.json +++ b/css/syntaxes.json @@ -137,6 +137,9 @@ "color-stop-list": { "syntax": "[ [, ]? ]# , " }, + "color-interpolation-method": { + "syntax": "in [ | ? ]" + }, "combinator": { "syntax": "'>' | '+' | '~' | [ '||' ]" }, @@ -356,6 +359,9 @@ "hue-rotate()": { "syntax": "hue-rotate( )" }, + "hue-interpolation-method": { + "syntax": "[ shorter | longer | increasing | decreasing ] hue" + }, "hwb()": { "syntax": "hwb( [ | none] [ | none] [ | none] [ / [ | none] ]? )" }, @@ -447,7 +453,7 @@ "syntax": " ?" }, "linear-gradient()": { - "syntax": "linear-gradient( [ | to ]? , )" + "syntax": "linear-gradient( [ [ | to ] || ]? , )" }, "log()": { "syntax": "log( , ? )" @@ -596,6 +602,9 @@ "polygon()": { "syntax": "polygon( ? , [ ]# )" }, + "polar-color-space": { + "syntax": "hsl | hwb | lch | oklch" + }, "position": { "syntax": "[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | ] [ top | center | bottom | ]? | [ [ left | right ] ] && [ [ top | bottom ] ] ]" }, @@ -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": "? " },