Contenteditable text selection

[left section] [center section] [right section]

Explanation of the bug

User agent tested: Mozilla/5.0 (iPhone; CPU iPhone OS 15_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1