Skip to content

Commit

Permalink
feat(css): Update syntax for path() & polygon()
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Jan 5, 2025
1 parent 23379df commit 5d6d908
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions css/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-palette/palette-mix"
},
"path()": {
"syntax": "path( [ <fill-rule>, ]? <string> )",
"syntax": "path( <'fill-rule'>? , <string> )",
"groups": [
"CSS Shapes",
"CSS Motion Path"
Expand All @@ -473,7 +473,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/perspective"
},
"polygon()": {
"syntax": "polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )",
"syntax": "polygon( <'fill-rule'>? , [ <length-percentage> <length-percentage> ]# )",
"groups": [
"CSS Shapes"
],
Expand Down
7 changes: 2 additions & 5 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,6 @@
"feature-value-name": {
"syntax": "<custom-ident>"
},
"fill-rule": {
"syntax": "nonzero | evenodd"
},
"filter-function": {
"syntax": "<blur()> | <brightness()> | <contrast()> | <drop-shadow()> | <grayscale()> | <hue-rotate()> | <invert()> | <opacity()> | <saturate()> | <sepia()>"
},
Expand Down Expand Up @@ -654,7 +651,7 @@
"syntax": "palette-mix(<color-interpolation-method> , [ [normal | light | dark | <palette-identifier> | <palette-mix()> ] && <percentage [0,100]>? ]#{2})"
},
"path()": {
"syntax": "path( [ <fill-rule>, ]? <string> )"
"syntax": "path( <'fill-rule'>? , <string> )"
},
"perspective()": {
"syntax": "perspective( [ <length [0,∞]> | none ] )"
Expand All @@ -663,7 +660,7 @@
"syntax": "hsl | hwb | lch | oklch"
},
"polygon()": {
"syntax": "polygon( <fill-rule>? , [ <length-percentage> <length-percentage> ]# )"
"syntax": "polygon( <'fill-rule'>? , [ <length-percentage> <length-percentage> ]# )"
},
"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

0 comments on commit 5d6d908

Please sign in to comment.