Skip to content

fix(icon): add fallback for safari 16.4 #1222

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

Closed
wants to merge 3 commits into from
Closed

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented May 25, 2023

Safari 16.4 has a bug where dynamically changing the document dir for the first time does not cause styles that use :dir to update. This new fallback allows icons to still flip correctly in the event the document dir changes before the component loads. If the document dir changes again, then Safari/WebKit will correctly re-render.

WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=257133

This WebKit bug is causing visual diffs in Ionic Framework with screenshots with ion-back-button because adding ?rtl=true to the URL causes the testing scripts to update the document dir asynchronously: ionic-team/ionic-framework@df7af96

This behavior should not impact applications that start with the desired document dir. This would impact applications that change the document dir dynamically. However, even before this fix developers would have encountered #1196 with the ion-back-button so there would have been no visual change.

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.

1 participant