-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Media & Text block should not use background image #52789
Comments
Hi @tkapler, Thanks for the report. Are you referring to Media & Text block? If so, the image is rendered as an |
Media & Text has the setting "Crop image to fill entire column". When it's on, the |
I see, I had missed that 😅 The Meda & Text block has a Focal Point Picker, but I think it can be handled by |
Additionally, when a background image is used, the original |
I added a PR two months ago, can someone take at look at it? |
This was fixed in #64981, now in trunk. Old markup should still work correctly using Please let me know if you come across any bugs! |
What problem does this address?
Current image+text block uses css background image for the image. The problem is, that this way it is not possible to use loading of the images (https://web.dev/browser-level-image-lazy-loading/#can-css-background-images-take-advantage-of-the-loading-attribute) and so it highly affects the initial page loading and Google LCP metrics https://web.dev/lcp/#what-elements-are-considered
What is your proposed solution?
I believe the same visual functionality can be achieved today with CSS grid/flex and CSS object-fit property
and BTW it would be great if all the image/gallery blocks would have lazy loading true/false property to set (with some option for the defaults).
The text was updated successfully, but these errors were encountered: