Caret position in pixels for texarea and input type="text" elements