Skip to content

Commit

Permalink
feat(css): add missing css functions to syntaxes
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Dec 10, 2024
1 parent 1d49426 commit a56c3fe
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions css/syntaxes.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,15 @@
"alpha-value": {
"syntax": "<number> | <percentage>"
},
"anchor()": {
"syntax": "anchor( <anchor-name>? && <anchor-side>, <length-percentage>? )"
},
"anchor-name": {
"syntax": "<dashed-ident>"
},
"anchor-size()": {
"syntax": "anchor-size( [ <anchor-name> || <anchor-size> ]? , <length-percentage>? )"
},
"angle-percentage": {
"syntax": "<angle> | <percentage>"
},
Expand Down Expand Up @@ -314,6 +320,9 @@
"final-bg-layer": {
"syntax": "<'background-color'> || <bg-image> || <bg-position> [ / <bg-size> ]? || <repeat-style> || <attachment> || <box> || <box>"
},
"fit-content()": {
"syntax": "fit-content( <length-percentage [0,∞]> )"
},
"fixed-breadth": {
"syntax": "<length-percentage>"
},
Expand Down Expand Up @@ -578,6 +587,12 @@
"offset-path": {
"syntax": "<ray()> | <url> | <basic-shape>"
},
"oklab()": {
"syntax": "oklab( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ / [<alpha-value> | none] ]? )"
},
"oklch()": {
"syntax": "oklch( [ <percentage> | <number> | none] [ <percentage> | <number> | none] [ <hue> | none] [ / [<alpha-value> | none] ]? )"
},
"opacity()": {
"syntax": "opacity( [ <number-percentage> ] )"
},
Expand Down Expand Up @@ -623,6 +638,9 @@
"palette-identifier": {
"syntax": "<dashed-ident>"
},
"palette-mix()": {
"syntax": "palette-mix(<color-interpolation-method> , [ [normal | light | dark | <palette-identifier> | <palette-mix()> ] && <percentage [0,100]>? ]#{2})"
},
"path()": {
"syntax": "path( [ <fill-rule>, ]? <string> )"
},
Expand Down

0 comments on commit a56c3fe

Please sign in to comment.