Skip to content

Inconsistent --strict-math handling of certain properties (hardcoded font etc.) #1627

Closed
@satya61229

Description

@satya61229

Some magic is happening in LESS. I used
ceil(@font-size-base * 1.25);
.. .
...
ceil(@font-size-base * 1.25);

First ceil was working but not the 2nd one. I was working with prepros downloaded recently. I checked in less2css.org there also same result. Now, it is working on less2css.

Another, issue was with this simple line of code:
@font-size-base * 1.25;

This was also used two times in my less. One for tablet and another for desktop with different number. First one was giving calculated number but another one was giving:
0.6em * 1.5; instead of calculated value.

I put the code here using which I was trying ceil and other:

http://stackoverflow.com/questions/19705791/why-this-less-css-is-failing

Also, "1em" with quote was coming whereas expected output was 1em.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions