Skip to content

Problem with removed parenthesis from calc before var #645

@awgul

Description

@awgul

Hey,

Code:
padding-top: calc(100% / (var(--aspect-ratio)));
gets compiled to:
padding-top: calc(100%/var(--aspect-ratio));

And this is wrong.
Chrome and Firefox don't respect the var() without parenthesis around it and so the code is not working as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions