wp-rocket
wp-rocket copied to clipboard
LazyLoad for CSS background images breaks linear-gradient applied to images
Before submitting an issue please check that you’ve completed the following steps:
- Made sure you’re on the latest version ✔️ (3.15.10)
- Used the search feature to ensure that the bug hasn’t been reported before ✔️
Describe the bug
linear-gradient
applied to background-image
is not visible when LazyLoad for CSS background images is enabled.
To Reproduce Steps to reproduce the behavior:
- Add a
background-image
with alinear-gradient
applied to it. - Enable the LazyLoad for CSS background images.
- See error: the
linear-gradient
is not visible when the image is loaded.
Expected behavior
A linear-gradient
applied via background-image
should be visible once the background image is loaded on the page.
Screenshots N/A
Additional context HS ticket: https://secure.helpscout.net/conversation/2572553368/486916 Slack thread: https://wp-media.slack.com/archives/C43T1AYMQ/p1713525678741239