Skip to content

Commit

Permalink
feat(css): Update syntax for circle() and ellipse() functions
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 committed Feb 21, 2025
1 parent b172f0a commit ee7c2ec
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions css/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc-size"
},
"circle()": {
"syntax": "circle( [ <shape-radius> ]? [ at <position> ]? )",
"syntax": "circle( <radial-size>? [ at <position> ]? )",
"groups": [
"CSS Shapes"
],
Expand Down Expand Up @@ -203,7 +203,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/element"
},
"ellipse()": {
"syntax": "ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )",
"syntax": "ellipse( <radial-size>? [ at <position> ]? )",
"groups": [
"CSS Shapes"
],
Expand Down
13 changes: 8 additions & 5 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
"syntax": "<percentage>? && <image>"
},
"circle()": {
"syntax": "circle( [ <shape-radius> ]? [ at <position> ]? )"
"syntax": "circle( <radial-size>? [ at <position> ]? )"
},
"clamp()": {
"syntax": "clamp( <calc-sum>#{3} )"
Expand Down Expand Up @@ -303,7 +303,7 @@
"syntax": "element( <id-selector> )"
},
"ellipse()": {
"syntax": "ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )"
"syntax": "ellipse( <radial-size>? [ at <position> ]? )"
},
"ending-shape": {
"syntax": "circle | ellipse"
Expand Down Expand Up @@ -710,9 +710,15 @@
"quote": {
"syntax": "open-quote | close-quote | no-open-quote | no-close-quote"
},
"radial-extent": {
"syntax": "closest-corner | closest-side | farthest-corner | farthest-side"
},
"radial-gradient()": {
"syntax": "radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"
},
"radial-size": {
"syntax": "<radial-extent> | <length [0,∞]> | <length-percentage [0,∞]>{2}"
},
"ratio": {
"syntax": "<number [0,∞]> [ / <number [0,∞]> ]?"
},
Expand Down Expand Up @@ -830,9 +836,6 @@
"shape-box": {
"syntax": "<visual-box> | margin-box"
},
"shape-radius": {
"syntax": "<length-percentage> | closest-side | farthest-side"
},
"side-or-corner": {
"syntax": "[ left | right ] || [ top | bottom ]"
},
Expand Down
3 changes: 0 additions & 3 deletions css/syntaxes.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,6 @@ Or, syntaxes might reference other syntaxes that are also defined in syntaxes.js
"length-percentage": {
"syntax": "<length> | <percentage>"
},
"shape-radius": {
"syntax": "<length-percentage> | closest-side | farthest-side"
},
```

For more information about the formal grammar of CSS syntaxes, see [CSS value definition syntax](https://developer.mozilla.org/en-US/docs/Web/CSS/Value_definition_syntax).

0 comments on commit ee7c2ec

Please sign in to comment.