-
Notifications
You must be signed in to change notification settings - Fork 3k
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
csscalc always return false if usePrefixes is false #1852
Comments
I am not not able to replicate this can you give a bit more information? |
I have a build with usePrefixes:false |
ah, im very sorry. I messed up the config when I made the bin :( the issue is that we are @ryanseddon @SlexAxton a hack fix would be to change prefixes from var prop = 'width:';
var value = 'calc(10px);';
var el = createElement('a');
el.style.cssText = prop + prefixes.join(value + prop); to something like var prop = 'width:';
var value = 'calc(10px);';
var el = createElement('a');
el.style.cssText = prop + value + prefixes.join(value + prop); the thoughts? |
I don't see a huge need to byteshave here. I'd be happy to to just check for the length of 'prefixes' and do something different in the zero case. But I'm not against |
its a bit of a yak shaving moment, but the main reason I think about it is we would have to do the same check in every detect that uses if neither you or @ryanseddon are against the |
Nope not against it. |
👍 On Tue, Jan 26, 2016 at 7:04 PM Ryan Seddon notifications@github.com
|
@zenatti fixed in master, should be released as 3.4.0 in a few days |
Thanks @patrickkettner !! |
csscalc test always return false if I set usePrefixes false on modernizr 3.3.1
"el.style.cssText = prop + prefixes.join(value + prop);" doesn't check if Modernizr._config.usePrefixes is true or false.
The text was updated successfully, but these errors were encountered: