stephenlacy / gulp-stylus

Stylus plugin for gulp
MIT License
223 stars 60 forks source link

Error in calculation result. #196

Closed Hai-San closed 6 years ago

Hai-San commented 6 years ago

I want to do the following calculation: div{ left: ((100% - 1230px) / 2); }

result: div{ left: -565%; }

The correct would be: div{ left: calc(50% - 615px); } or

div{ left: 336.5px; }

If I use as in the example below everything works correctly: div{ left: calc((100% - 1230px) / 2); }

stephenlacy commented 6 years ago

This should be reported on the stylus project