Input at zero width reverts input's value

Annopsetesk

New Member
I noticed this strange behaviour when setting an input width to \[code\]0\[/code\], or \[code\]0px\[/code\]. It reverts the content of it.See this jsfiddle.Try filling the input and press \[code\]Get Value\[/code\]. It shows the value inverted!Now try commenting out the CSS width style of \[code\]#input\[/code\] and repeat the process. Value shows ok. Is this the supposed behaviour? Am I missing something? Just seems weird to me.
 
Back
Top