Click anywhere in the text to see a red vertical line – a 1-pixel-thick
div
that should be positioned exactly at the location of the
caret. Once you click in the <textarea>
, the debugging div
used by the library to calculate the caret position will be displayed.
The test areas look unusual due to CSS properties purposefully chose to stress-test the position calculation algorithm.
<input type="text">
<input>
manual tests<textarea>
<textarea>
manual tests