Functions
CSS Functional Notation is a type of CSS value that can represent more complex data types or invoke special data processing or calculations.
Reference functions
The following functions are used as a value of properties to reference a value defined elsewhere.
env()
The env() can be used to insert the value of a user agent-defined environment variable into your CSS, in a similar fashion to the var() function and custom properties.
<div class="pt:calc(env(safe-area-inset-top)+0.5rem)">...</div>var()
Define your variables in CSS file or <style>, access the variable via $(var).
:root {
--demo-skew: skewX(30deg);
}<img class="transform:$(demo-skew)"></img>Transform functions
Master document of transform function: Transform.
Math functions
The math functions allow CSS numeric values to be written as mathematical expressions.
Filter functions
Master document of filter function: Filter, Backdrop Filter.
Color functions
Master includes out-of-the-box color palette consisting of several common colors: Colors.
Image functions
Master document of Image function: Background Image, List Style Image.
Counter functions
The counter functions are generally used with the content property.
Shape functions
Master document of shape function: Clip Path, Shape Outside.
Grid functions
Master document of grid function: Grid.