From 9fe31385c6abf5d2279ee252b0b440902c0e8e53 Mon Sep 17 00:00:00 2001 From: skyclouds2001 <95597335+skyclouds2001@users.noreply.github.com> Date: Wed, 18 Dec 2024 00:59:58 +0800 Subject: [PATCH] feat(css): add missing css functions (#829) Co-authored-by: Vadim Makeev --- css/functions.json | 153 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 153 insertions(+) diff --git a/css/functions.json b/css/functions.json index 26bc4ac44..1b711a0a1 100644 --- a/css/functions.json +++ b/css/functions.json @@ -1,4 +1,22 @@ { + "abs()": { + "syntax": "abs( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/abs" + }, + "acos()": { + "syntax": "acos( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/acos" + }, "anchor()": { "syntax": "anchor( ? && , ? )", "groups": [ @@ -15,6 +33,33 @@ "status": "experimental", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/anchor-size" }, + "asin()": { + "syntax": "asin( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/asin" + }, + "atan()": { + "syntax": "atan( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/atan" + }, + "atan2()": { + "syntax": "atan2( , )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/atan2" + }, "attr()": { "syntax": "attr( ? [, ]? )", "groups": [ @@ -91,6 +136,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/contrast" }, + "cos()": { + "syntax": "cos( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/cos" + }, "counter()": { "syntax": "counter( , ? )", "groups": [ @@ -149,6 +203,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/env" }, + "exp()": { + "syntax": "exp( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/exp" + }, "fit-content()": { "syntax": "fit-content( )", "groups": [ @@ -191,6 +254,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/hue-rotate" }, + "hypot()": { + "syntax": "hypot( # )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/hypot" + }, "hwb()": { "syntax": "hwb( [ | none] [ | none] [ | none] [ / [ | none] ]? )", "groups": [ @@ -280,6 +352,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/gradient/linear-gradient" }, + "log()": { + "syntax": "log( , ? )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/log" + }, "matrix()": { "syntax": "matrix( #{6} )", "groups": [ @@ -323,6 +404,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/minmax" }, + "mod()": { + "syntax": "mod( , )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/mod" + }, "oklab()": { "syntax": "oklab( [ | | none] [ | | none] [ | | none] [ / [ | none] ]? )", "groups": [ @@ -389,6 +479,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/basic-shape/polygon" }, + "pow()": { + "syntax": "pow( , )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/pow" + }, "radial-gradient()": { "syntax": "radial-gradient( [ || ]? [ at ]? , )", "groups": [ @@ -406,6 +505,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/ray" }, + "rem()": { + "syntax": "rem( , )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/rem" + }, "repeating-conic-gradient()": { "syntax": "repeating-conic-gradient( [ from ]? [ at ]?, )", "groups": [ @@ -489,6 +597,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/rotateZ" }, + "round()": { + "syntax": "round( ?, , )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/round" + }, "saturate()": { "syntax": "saturate( )", "groups": [ @@ -555,6 +672,24 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/filter-function/sepia" }, + "sign()": { + "syntax": "sign( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/sign" + }, + "sin()": { + "syntax": "sin( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/sin" + }, "skew()": { "syntax": "skew( [ | ] , [ | ]? )", "groups": [ @@ -579,6 +714,15 @@ "status": "standard", "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/transform-function/skewY" }, + "sqrt()": { + "syntax": "sqrt( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/sqrt" + }, "target-counter()": { "syntax": "target-counter( [ | ] , , ? )", "groups": [ @@ -600,6 +744,15 @@ ], "status": "nonstandard" }, + "tan()": { + "syntax": "tan( )", + "groups": [ + "CSS Units", + "CSS Lengths" + ], + "status": "standard", + "mdn_url": "https://developer.mozilla.org/docs/Web/CSS/tan" + }, "translate()": { "syntax": "translate( , ? )", "groups": [