From 6b789ea8de77ed9efc0ae9382a59a981d0696bc5 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Sun, 5 Jan 2025 17:24:17 +0800 Subject: [PATCH] feat(css): Update syntax for `path()` & `polygon()` --- css/functions.json | 4 ++-- css/syntaxes.json | 7 ++----- 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/css/functions.json b/css/functions.json index fa4a71c6..0e5b049d 100644 --- a/css/functions.json +++ b/css/functions.json @@ -464,7 +464,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-palette/palette-mix" }, "path()": { - "syntax": "path( [ , ]? )", + "syntax": "path( <'fill-rule'>? , )", "groups": [ "CSS Shapes", "CSS Motion Path" @@ -481,7 +481,7 @@ "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/perspective" }, "polygon()": { - "syntax": "polygon( ? , [ ]# )", + "syntax": "polygon( <'fill-rule'>? , [ ]# )", "groups": [ "CSS Shapes" ], diff --git a/css/syntaxes.json b/css/syntaxes.json index 965edc64..7520bf2f 100644 --- a/css/syntaxes.json +++ b/css/syntaxes.json @@ -329,9 +329,6 @@ "feature-value-name": { "syntax": "" }, - "fill-rule": { - "syntax": "nonzero | evenodd" - }, "filter-function": { "syntax": " | | | | | | | | | " }, @@ -663,7 +660,7 @@ "syntax": "palette-mix( , [ [normal | light | dark | | ] && ? ]#{2})" }, "path()": { - "syntax": "path( [ , ]? )" + "syntax": "path( <'fill-rule'>? , )" }, "perspective()": { "syntax": "perspective( [ | none ] )" @@ -672,7 +669,7 @@ "syntax": "hsl | hwb | lch | oklch" }, "polygon()": { - "syntax": "polygon( ? , [ ]# )" + "syntax": "polygon( <'fill-rule'>? , [ ]# )" }, "position": { "syntax": "[ [ left | center | right ] || [ top | center | bottom ] | [ left | center | right | ] [ top | center | bottom | ]? | [ [ left | right ] ] && [ [ top | bottom ] ] ]"