Skip to main content

Module calc

Module calc 

Source
Expand description

Re-exports§

pub use crate::values::generics::calc::CalcPercentageLeaf;
pub use self::SpecifiedCalcNode as CalcNode;

Structs§

AdditionalFunctions
Additional functions within math functions that are permitted to be parsed depending on the context of parsing (e.g. Parsing inset allows use of anchor() within calc()).
CalcLengthPercentage
A calc() expression that is known to resolve to a <length-percentage>.
CalcNumeric
A struct to hold a simplified calc expression and associated clamping mode.
CalcParseFlags
What is allowed to be parsed for math functions within in this context?
MathFunctionIter
An iterator over the variants of MathFunction

Enums§

AllowAnchorPositioningFunctions
Should parsing anchor-positioning functions in calc() be allowed?
CalcNodeParseInPlaceOperations
Whether in place operations should be done when parsing expressions to create CalcNode
Leaf
A leaf node inside a Calc expression’s AST.
MathFunction
The name of the mathematical function that we’re parsing.
PercentageContext
Dictates whether percentages are allowed in the calculation that is parsed using this context, and whether such percentages have a known “percent hint” (the type that they will eventually resolve to). https://drafts.csswg.org/css-values-4/#calc-context

Functions§

parse_anchor_function_fallback 🔒

Type Aliases§

CalcAnchorFunction
Specified anchor() function in math functions.
CalcAnchorSizeFunction
Specified anchor-size() function in math functions.
SpecifiedCalcNode
A calc node representation for specified values.