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

Turn off RTL text patch on Chromium >=96 #8741

Merged
merged 1 commit into from
Oct 17, 2021

Conversation

mapmeld
Copy link
Contributor

@mapmeld mapmeld commented Oct 8, 2021

Way back in #3923 and #6018 I had a fix for right-to-left line labels in Chromium-based browsers. Long story short, iD is one of the few places on the web which uses SVG textPath elements. A text shaping bug is making complex text (such as Indic languages , #5342) or RTL text broken for a long time - bug reported in 2014. We were able to use a JS library, sort of a hack really, to show corrected letters for Arabic and other RTL languages.

This week, the bug was fixed in Chrome Canary. In this PR I suggest that we detect the browser version and skip the right-to-left label fix in Chromium >= 96.0

Should the code and alif-toolkit dependency just be removed? Chrome, Brave, etc. are currently on Chromium 94. Once the fix is more mainstream (mid-November), we could start a grace period of 6?-18? months and then remove it.

@jfirebaugh
Copy link
Member

Thanks @mapmeld!

Once the fix is more mainstream (mid-November), we could start a grace period of 6?-18? months and then remove it.

Sounds good to me!

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

Successfully merging this pull request may close these issues.

3 participants