Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coordsAtPos is bad at bidirectional text #900

Open
marijnh opened this issue Mar 7, 2019 · 0 comments
Open

coordsAtPos is bad at bidirectional text #900

marijnh opened this issue Mar 7, 2019 · 0 comments

Comments

@marijnh
Copy link
Member

marijnh commented Mar 7, 2019

It makes assumptions about which side of a rectangle it should return that only hold in left-to-right text.

With patch e2cd163108 it is slightly better on Chrome and Firefox, but that approach (using an empty text range to query coordinates) makes it very hard to solve #899, so we'll probably need to find another solution.

I have no idea what that would look like—in simple cases you could use the position of nearby characters to figure out the direction of the text, but given a complex enough mix of left-to-right and right-to-left text such an approach tends to break down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant