My code:
$('input').hide().show(10000);
I have tested the jsFiddle with Google Chrome 14 on Windows 7 and Mac OS 10.7.
The input box shivers towards the end of the animation. Is this a bug or the expected effect?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It is not a bug I think. The truth is that the browser is usually unable to set non-integer
widthorheightof an input element, trying to round, for example,height: 11.007252845381956pxtoheight: 11pxor12px.The shivering disappears once you set
vertical-alignas follows (fiddle):Therefore I can assume that the vibration comes from browser’s inability to determine (or round)
height,line-heightor any other property that influences the vertical alignment.