Skip to content

Math expressions directly assigned to a CSS custom property are not computed. #619

@anrikun

Description

@anrikun
  --test1: (1 / 2);

  @value: (1 / 2);
  --test2: @value;

compiles to:

  --test1: (1 / 2);
  --test2: 0.5;

I would expect both to compile to 0.5
I can't find any mention of this in documentation.

EDIT: see less/less.js#3800

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions