Skip to content

Commit

Permalink
fix(css): make functions syntax consistent (#817)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Dec 5, 2024
1 parent 9c8b9eb commit eeffb3f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions css/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,15 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/contrast"
},
"counter()": {
"syntax": "counter( <custom-ident>, <counter-style>? )",
"syntax": "counter( <counter-name>, <counter-style>? )",
"groups": [
"CSS Lists and Counters"
],
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/counter"
},
"counters()": {
"syntax": "counters( <custom-ident>, <string>, <counter-style>? )",
"syntax": "counters( <counter-name>, <string>, <counter-style>? )",
"groups": [
"CSS Lists and Counters"
],
Expand Down Expand Up @@ -266,7 +266,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/min"
},
"minmax()": {
"syntax": "minmax( [ <length> | <percentage> | min-content | max-content | auto ] , [ <length> | <percentage> | <flex> | min-content | max-content | auto ] )",
"syntax": "minmax( [ <length-percentage> | min-content | max-content | auto ] , [ <length-percentage> | <flex> | min-content | max-content | auto ] )",
"groups": [
"CSS Units",
"CSS Lengths"
Expand Down Expand Up @@ -325,7 +325,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/font-palette/palette-mix"
},
"perspective()": {
"syntax": "perspective( <length> )",
"syntax": "perspective( [ <length [0,∞]> | none ] )",
"groups": [
"CSS Transforms"
],
Expand Down Expand Up @@ -481,7 +481,7 @@
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/scaleZ"
},
"scroll()": {
"syntax": "scroll([<axis> || <scroller>]?)",
"syntax": "scroll( [ <scroller> || <axis> ]? )",
"groups": [
"CSS Animations"
],
Expand Down
2 changes: 1 addition & 1 deletion css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
"syntax": "<selector-list>"
},
"scroll()": {
"syntax": "scroll( [ <axis> || <scroller> ]? )"
"syntax": "scroll( [ <scroller> || <axis> ]? )"
},
"scroller": {
"syntax": "root | nearest | self"
Expand Down

0 comments on commit eeffb3f

Please sign in to comment.