Skip to content

Strange unit math in 2.x #28

@shoomyth

Description

@shoomyth

calc(100vw - (100vw - 100%))

I'm using this hack to solve ios scroll bug.

1.3.0: calc(100vw - (100vw - 100%))
2.0: calc(0vw - 100%)

Can't understand new math with different units. This is totally incorrect. I can understand calc(0vw + 100%), but current behavior looks very suspicious.

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