Fixed Cover Images on iOS fail #6025
Labels
[Feature] Blocks
Overall functionality of blocks
[Status] Duplicate
Used to indicate that a current issue matches an existing one and can be closed
Issue Overview
Issue: iOS devices don't play well with background-attachment: fixed used for fixed Cover Images (parallax). Android devices work fine, but iOS devices just show some tiny piece of the background image, so it is really ugly.
Steps to Reproduce (for bugs)
Possible Solution
What is needed is a new CSS rule based on knowledge of iOS, something like:
At the least, this should be documented as a known problem with iOS. It isn't unique to Gutenberg, but needs to be handled because there are a lot of iOS devices.
A documentation solution is something like this (based on Customizer code):
In the body_class filter, add a body class for iOS, like this:
and add a rule to the theme's block css file.
Gutenberg could also standardize on is-ios or ios (as in the customizer), and add the above scroll rule to the Gutenberg block css, and let the theme add the is-ios. This doesn't solve the problem for all the non-gutenberg-supporting themes, however.
And maybe WP core needs to standardize on an iOS class to always add to the body as needed.
The text was updated successfully, but these errors were encountered: