Skip to content

subtract add don't act as expected in some cases #33953

@oliwerAR

Description

@oliwerAR

The functions do not act as I would expect (as I think is intuitive) when the result of the add function is used as an argument for the subtract function.

Eg.
subtract(100%, add(1rem, 1em, false));
returns
calc(100% - 1rem + 1em)

I would expect
calc(100% - (1rem + 1em))
or
calc(100% - 1rem - 1em)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions