Skip to main content

Module mixins

Module mixins 

Source

Modules§

custom_function
Port of src/ast/mixins/custom-function.ts: a custom function call (<dashed-function>) is replaced by the result of the function, like var() is replaced by the value of a custom property (https://drafts.csswg.org/css-mixins-1/#defining-custom-functions).
utils
Port of src/ast/mixins/utils.ts: helpers shared by the minification features.
variables
Port of src/ast/mixins/variables.ts: the variables of the mixins and of the custom functions. The var() functions that reference the private variables (mixin arguments, @private, local variables of a custom function, …) are replaced by a copy of the variable value (https://drafts.csswg.org/css-mixins-1/).