-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Numbers get rounded when using @arguments
#2057
Comments
The problem is with gulp-less not less. My bad. |
Just in case it does look like Less issue, e.g. v.1.7.1:
But I'm not reopeing this since you don't need inline javascript there since Less v1.3.2 as soon as you use |
This also affects all mixins in LESS Hat. Are there any workarounds or is this a bug in core? |
@seven-phases-max I got this idea from LESS Hat, which is heavily depended on such 'legacy hacks'. Its very useful. This is a mixin, I created for positioning of elements after having a look at LESS Hat. |
This commit caused the problem. Quick fix is to use the interpolation syntax |
Yes, most likely. Inline JavaScript stuff is not massively covered by the tests so we could just overlook the regression. I'll try submit a fix sooner (though it won't probably get into release soon since v1.7.1 has been just released). |
Same w/o javascript (I only changed property delimiter to (offtopic: Btw. this is the use-case where #1857 would come handy, implementation could become more simple (with args-pattern-matching instead of endless |
@seven-phases-max |
@seven-phases-max see commit, it was caused by weird code (that I don't think would have ever made sense) in the jsify function. I'm planning a 1.7.2 release for this issue and one effecting alot of grunt users. |
@lukeapage Thanks! |
@lukeapage Thanks! @seven-phases-max Thank you too |
I have this same bug, is it fixed? |
@bluetidepro have a look at @lukeapage's reply above
|
I'm using the following code.
And it produces the following result.
As you can see 0.3, 0.4 get rounded to 0 and 0.6 gets rounded to 1
The text was updated successfully, but these errors were encountered: