w3c/csswg-drafts

[cssom-view] Add methods to INPUT/TEXTAREA to return rects for INPUT/TEXTAREA selection

Open

#1,482 建立於 2017年5月31日

在 GitHub 查看
 (1 留言) (1 反應) (0 負責人)HTML (545 fork)batch import
Help Wantedcssom-view-1

倉庫指標

Star
 (3,546 star)
PR 合併指標
 (平均合併 87天 7小時) (30 天內合併 24 個 PR)

描述

As an end user, I've noticed that if I press End in a textarea on a line ending in whitespace, both Chrome and Firefox place the cursor after that whitespace. But, if I navigate towards that trailing whitespace using the right arrow key, the cursor jumps from the last non-whitespace character on the line to the first column of the next line.

To address the inconsistency, I filed this issue in the Chrome bug tracker, and was asked to create an issue here to add methods to INPUT/TEXTAREA to return rects for INPUT/TEXTAREA selection, like Range#getClientRects() and getBoundingClientRect. Please see that link for more context.

貢獻者指南