Skip to content

Issues with negative Numbers and Sizes #25

@laeubi

Description

@laeubi

I'm facing several issues with negative numbers, eg
top: -@variable
outputes
top: - 2.5mm;
(there is a space betwenn the minus sign an the value)

Using
top: @eval(-1*@variable)
outputs
top: 2.5mm

Using
top: @eval(-@variable)
outputs
org.zkoss.zuss.ZussException: Unable to negate a size, 2.5mm

From the source I can't see why it should not be possible to negate a size (since it's an ordinary number with a unit), so thin can be added. Another strange thing is that the negate operator only negates sizes and colors but not Numbers.

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