Skip to content

Could not reduce expression: calc(0.25em - 1px)? #20

Closed
@davidhund

Description

@davidhund

Hi, I am using postcss-calc (which uses reduce-css-calc if I'm correct), thanks for your work.

I was under the impression that mixed units should work (I even saw some tests for it) so I am confused why the following throws an error:

Could not reduce expression: calc(.25em - 1px) [postcss-calc]

I am simply using it as:

.c-linklist a {
    display: block;
    padding-top: .25em;
    padding-bottom: calc(.25em - 1px);
}

Am I missing something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions