rundel/carto-parser — Issue #24: Cannot perform multiplications with color and scalar value
Author: rfw
Created: 2012-01-31 03:34:25+00:00
State: open

The following fails:

color: #fff * 0.7;

Since `#fff` gets turned into a `utree` node, multiplication by `0.7` is not possible in `carto::expression::eval_node` as it directly tries to multiply a `utree` with a `double`.

The only way I can see around this is to create a new data structure for colors that overloads arithmetic operations, but it may require an overhaul of internals.