Skip to content

Evaluation of mis-matching units #58

Open
@jsakas

Description

@jsakas

Hi, in reviewing the tests it looks like mis-matching units are evaluated, for example:

test(
  'should reduce nested expression',
  testFixture,
  'calc( (1em - calc( 10px + 1em)) / 2)',
  '-5px'
)

I'm unsure how this equates to 5px unless you are also converting em to px.

Based on current browser implementations, mis-matching units are not evaluated and this would get converted to calc((1em - (10px + 1em)) / 2). I am wondering if this evaluation is intentional or a a bug.

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