Skip to content

[css-typed-om] Simplifying expressions in CSSMathValue subclasses. #503

Closed
@darrnshn

Description

@darrnshn

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions