Skip to content

Commit fbc345f

Browse files
feat(css): Update syntax for circle() and ellipse() functions (#928)
1 parent 90a3446 commit fbc345f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

css/functions.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc-size"
104104
},
105105
"circle()": {
106-
"syntax": "circle( [ <shape-radius> ]? [ at <position> ]? )",
106+
"syntax": "circle( <radial-size>? [ at <position> ]? )",
107107
"groups": [
108108
"CSS Shapes"
109109
],
@@ -203,7 +203,7 @@
203203
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/element"
204204
},
205205
"ellipse()": {
206-
"syntax": "ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )",
206+
"syntax": "ellipse( <radial-size>? [ at <position> ]? )",
207207
"groups": [
208208
"CSS Shapes"
209209
],

css/syntaxes.json

+8-5
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@
135135
"syntax": "<percentage>? && <image>"
136136
},
137137
"circle()": {
138-
"syntax": "circle( [ <shape-radius> ]? [ at <position> ]? )"
138+
"syntax": "circle( <radial-size>? [ at <position> ]? )"
139139
},
140140
"clamp()": {
141141
"syntax": "clamp( <calc-sum>#{3} )"
@@ -309,7 +309,7 @@
309309
"syntax": "element( <id-selector> )"
310310
},
311311
"ellipse()": {
312-
"syntax": "ellipse( [ <shape-radius>{2} ]? [ at <position> ]? )"
312+
"syntax": "ellipse( <radial-size>? [ at <position> ]? )"
313313
},
314314
"ending-shape": {
315315
"syntax": "circle | ellipse"
@@ -728,9 +728,15 @@
728728
"quote": {
729729
"syntax": "open-quote | close-quote | no-open-quote | no-close-quote"
730730
},
731+
"radial-extent": {
732+
"syntax": "closest-corner | closest-side | farthest-corner | farthest-side"
733+
},
731734
"radial-gradient()": {
732735
"syntax": "radial-gradient( [ <ending-shape> || <size> ]? [ at <position> ]? , <color-stop-list> )"
733736
},
737+
"radial-size": {
738+
"syntax": "<radial-extent> | <length [0,∞]> | <length-percentage [0,∞]>{2}"
739+
},
734740
"ratio": {
735741
"syntax": "<number [0,∞]> [ / <number [0,∞]> ]?"
736742
},
@@ -851,9 +857,6 @@
851857
"shape-box": {
852858
"syntax": "<visual-box> | margin-box"
853859
},
854-
"shape-radius": {
855-
"syntax": "<length-percentage> | closest-side | farthest-side"
856-
},
857860
"side-or-corner": {
858861
"syntax": "[ left | right ] || [ top | bottom ]"
859862
},

css/syntaxes.md

-3
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ Or, syntaxes might reference other syntaxes that are also defined in syntaxes.js
3939
"length-percentage": {
4040
"syntax": "<length> | <percentage>"
4141
},
42-
"shape-radius": {
43-
"syntax": "<length-percentage> | closest-side | farthest-side"
44-
},
4542
```
4643

4744
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 commit comments

Comments
 (0)