Expand description
CSS Calc type parsing with full arithmetic support.
Implements complete calc() expression parsing with operator precedence.
Structs§
- Addition
- Addition operation: { type: ‘+’, left: CalcValue, right: CalcValue }
- Calc
- Main Calc expression container
- Calc
Dimension - Dimension with value and unit for calc expressions
- Division
- Division operation: { type: ‘/’, left: CalcValue, right: CalcValue }
- Group
- Group (parenthesized expression): { type: ‘group’, expr: CalcValue }
- Multiplication
- Multiplication operation: { type: ‘*’, left: CalcValue, right: CalcValue }
- Subtraction
- Subtraction operation: { type: ‘-’, left: CalcValue, right: CalcValue }
Enums§
- Calc
Value - Calc
Value OrOperator - Union type for calc values and operators during parsing