-
Notifications
You must be signed in to change notification settings - Fork 163
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
couple gotchas with css #8
Comments
Thanks a lot @mattdesl, great feedback :) You're absolutely right about mentioning the case differences, will fix. I'm not sure to understand what's the cssFloat edge case though? |
I believe this is what @mattdesl is referring to - element.style.cssFloat = 'left'; // correct
element.style.float = 'left'; // incorrect
|
Oh ok yeah, sure. Well I guess this could just fall into the "just use CSS property names" restriction from @mattdesl's other comments. Some things do work, like |
Cool library. 👍
Just skimming the
css()
function and noticed a couple pitfalls that you may want to mention in the docs.css()
element.css('backgroundColor') !== element.css('background-color')
css('zIndex', 0)
is treated as pixels,css('z-index', 0)
is treated as a numbercssFloat
edge caseThe text was updated successfully, but these errors were encountered: