branchsbox/css-calccancel

7 Commits over 0 Days - ∞cph!

8 Months Ago
Initial support for `calc( ... )` Length.Calc (LengthUnit.Expression), evaluate on demand Add failing test for nested calc (`calc( ... + calc( ... ) )`) Add support for nested `calc()` statements Do GetPixels inside calc functions (for percentages) Division by zero throws correct DivideByZeroException Tests & support for invalid syntax, constants (e, pi, nan), scaling percentages Remove token count check, will need to re-think this validation later Rename test class to CalcTests, clean up Check if length unit is expression & evaluate on demand Implicit eval Pass parent property values into ToYoga() for calc
8 Months Ago
Implicit eval Pass parent property values into ToYoga() for calc
8 Months Ago
Rename test class to CalcTests, clean up Check if length unit is expression & evaluate on demand
8 Months Ago
Tests & support for invalid syntax, constants (e, pi, nan), scaling percentages Remove token count check, will need to re-think this validation later
8 Months Ago
Do GetPixels inside calc functions (for percentages) Division by zero throws correct DivideByZeroException
8 Months Ago
Length.Calc (LengthUnit.Expression), evaluate on demand Add failing test for nested calc (`calc( ... + calc( ... ) )`) Add support for nested `calc()` statements
8 Months Ago
Initial support for `calc( ... )`