Skip to content

Commit

Permalink
feat(css): add missing calc-size() function (#823)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Dec 14, 2024
1 parent 8059106 commit 1ea6782
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
9 changes: 9 additions & 0 deletions css/functions.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,15 @@
"status": "standard",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc"
},
"calc-size()": {
"syntax": "calc-size( <calc-size-basis>, <calc-sum> )",
"groups": [
"CSS Units",
"CSS Lengths"
],
"status": "experimental",
"mdn_url": "https://developer.mozilla.org/docs/Web/CSS/calc-size"
},
"circle()": {
"syntax": "circle( [ <shape-radius> ]? [ at <position> ]? )",
"groups": [
Expand Down
6 changes: 6 additions & 0 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@
"calc-product": {
"syntax": "<calc-value> [ '*' <calc-value> | '/' <number> ]*"
},
"calc-size()": {
"syntax": "calc-size( <calc-size-basis>, <calc-sum> )"
},
"calc-size-basis": {
"syntax": "<intrinsic-size-keyword> | <calc-size()> | any | <calc-sum>"
},
"calc-sum": {
"syntax": "<calc-product> [ [ '+' | '-' ] <calc-product> ]*"
},
Expand Down

0 comments on commit 1ea6782

Please sign in to comment.