Closed
Description
In the algorithm for adding CSSNumericValues, we have an explicit step (Step 3) for simplifying the expression if all values are CSSUnitValues
with the same unit. However, none of the other subclasses seem to have this step, even though theoretically it should be possible (e.g. min(2px, 3px) == 2px
). The inconsistency is a bit confusing and makes addition a special case in terms of implementation. Is there any particular reason for making addition simplify but not the others?