Skip to content

calc function not compiling correctly #17

@CodeAbuser

Description

@CodeAbuser

Installed product versions

  • Visual Studio: [2019 Enterprise]
  • This extension: [0.9.44]

Description

When compiling LESS to CSS, the calc function is not working correctly.

Steps to recreate

  1. in a LESS file, add a line like this width: calc(50% - 20px);
  2. when you compile, you'll see the generated output is like this: width: calc(30%);
  3. it is supposed to retain the original calc but it looks like it's actually trying to subtract 20 from 50%

Current behavior

It's not supposed to modify what is in-between the parentheses of the calc function

Expected behavior

the text between the parentheses is supposed to be retained.

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