Postponed
Project:
Drupal core
Version:
main
Component:
responsive_image.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
23 Jun 2022 at 14:24 UTC
Updated:
23 Jun 2022 at 17:24 UTC
Jump to comment: Most recent
Comments
Comment #2
catchLooked up https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture
The fallback is used in the case that the browser doesn't support picture, but it's also used in the case that none of the
sourceelements matched. I guess if you had a breakpoint for <200px, and a responsive image that only used that breakpoint, and then you viewed at 1900px. So we might need to keep it for that case anyway?Comment #3
longwaveThe img tag contains the alt attribute as well, so we probably still need to keep it. I suppose modern browsers will generally do the right thing and not download two images when they only intend to display one (unless the window size changes, etc).
Maybe we just need to update the comment that talks about picture not being supported.