[fix] z-index causes images to not show in iOS 18.3 sometimes#2758
Open
ayroblu wants to merge 1 commit intonecolas:masterfrom
Open
[fix] z-index causes images to not show in iOS 18.3 sometimes#2758ayroblu wants to merge 1 commit intonecolas:masterfrom
ayroblu wants to merge 1 commit intonecolas:masterfrom
Conversation
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ad6b624:
|
1ad74d2 to
ad6b624
Compare
Contributor
Author
|
@necolas ? |
|
@ayroblu try adding the following to your image css styling. This should hopefully solve the issue that WebKit causes when the page becomes scrollable. willChange: 'transform',
transform: 'translateZ(0)',
backfaceVisibility: 'hidden', |
Contributor
Author
|
Thanks! @danicunhac Wondering if you have any context on what the issue is? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hey @necolas,
I noticed after I updated my phone to iOS 18.3 that some avatar images stopped loading for me in the account switcher in x.com, most likely a webkit issue. A fix appears to be removing this z-index, though I'm not sure about the exact set of circumstances to trigger this, though it's deterministic for mobile account switcher. I'm also not sure why a negative z-index was added in the first place here.
Let me know if you need anything