Skip to content
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

using 'calc' shoes an Error: Incompatible units: 'px' and '%' #1776

Closed
davidmeirlevy opened this issue Dec 8, 2015 · 4 comments
Closed

using 'calc' shoes an Error: Incompatible units: 'px' and '%' #1776

davidmeirlevy opened this issue Dec 8, 2015 · 4 comments

Comments

@davidmeirlevy
Copy link

for node-sass using libsass 3.3.2:
I want to move from ruby-sass to libsass, but using 'calc' the same way is now impossible and shows an error: Incompatible units: 'px' and '%'.
I can wrap 'calc' with "unquote" function, but it seems like an ugly workaround..

@xzyfer
Copy link
Contributor

xzyfer commented Dec 8, 2015

Please provide a copy pastable working code sample that works with Ruby
Sass but produces the error in LibSass.
On 8 Dec 2015 7:01 pm, "David Meir-Levy" notifications@github.com wrote:

I want to move from ruby-sass to libsass, but using 'calc' the same way is
now impossible and shows an error: Incompatible units: 'px' and '%'.
I can wrap 'calc' with "unquote" function, but it seems like an ugly
workaround..


Reply to this email directly or view it on GitHub
#1776.

@davidmeirlevy
Copy link
Author

h1 {
width :calc(100% - 110px);
}

@xzyfer
Copy link
Contributor

xzyfer commented Dec 10, 2015

Thanks @davidmeirlevy which this sample I can confirm this is a known issue. Sass has special handling of some functions including calc which we haven't implemented yet.

@mgreter
Copy link
Contributor

mgreter commented Jan 14, 2016

This should be fixed on latest master, test might be redundant, but the more the merrier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants