You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 15, 2026. It is now read-only.
coordsAtPos doesn't match text rendering position on Safari #1149
I initially discovered this issue when I was exploring codemirror-vim on Safari: replit/codemirror-vim#118, I also started a thread on the forum.
Meanwhile, I spent some time investigating how coordsAtPos is implemented and seems it uses getClientRects, which makes me pessimistic about fixing this issue.
Activity
marijnh commentedon May 2, 2023
Do you have a minimal reproduction script for this?
cyanzhong commentedon May 2, 2023
Thank you for the quick response.
To reproduce the block cursor issue, I used the playground provided by replit: https://replit.com/@util/codemirror-vim, source code: https://github.com/replit/codemirror-vim/tree/master/dev.
To reproduce the selection position difference I showed in the forum, I used codemirror demos: https://codemirror.net/try/.
Just open using both Chrome and Safari and I was able to see the difference, I am on macOS Ventura.
marijnh commentedon May 3, 2023
I am not seeing this, even when zoomed all the way in.
cyanzhong commentedon May 18, 2023
That's weird.. I tried and reproduced using both Monterey and Ventura.
hronro commentedon May 23, 2023
I confirm that I am experiencing the same issue on an M1 Mac mini running Monterey 12.6.5 and Safari Version 16.5.
marijnh commentedon Nov 17, 2025
Not sure if this is still an issue. Closing this until I get new information.