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

🐛 [Amp story player] Remove active iframe translateZ #37275

Closed
wants to merge 2 commits into from

Conversation

processprocess
Copy link
Contributor

Fixes a Safari bug where translateZ overrides z-index, which is causing the previous and next story buttons to not be visible.

translateZ does not appear to be needed since translateX is being used to set position.

Context / Fixes #37211

@@ -32,7 +32,7 @@

.i-amphtml-story-player-main-container iframe:nth-of-type(1),
.i-amphtml-story-player-main-container .story-player-iframe[i-amphtml-iframe-position="0"] {
transform: translate3d(0, 0, 1px);
transform: translate3d(0, 0, 0);
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we know that the active iframe will still stay on top of others if we make this change (as that looks like the original intention of this code)? We should test both initial load and cross-browser cases

@stale
Copy link

stale bot commented Mar 18, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Inactive for one year or more label Mar 18, 2023
@stale stale bot closed this Apr 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Stale Inactive for one year or more
Projects
None yet
Development

Successfully merging this pull request may close these issues.

amp-story-player: previous and next story buttons not visible in Safari
3 participants