You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would expect the lazysizes to use the aspect ratio from the source instead of image since otherwise no different aspect ratio for different screen size is possible.
What happened instead
Lazysizes uses the aspect ratio from the img tag itself.
Tested on Chrome 85. on Mac, Safari 14.0
The text was updated successfully, but these errors were encountered:
Also saw that issue #490 which seems not the same topic. Was trying to use a custom function to calculate the height myself but it seems that its only triggered for the img tag itself and not four all sources of the picture.
Aspect Ratio is not calculated for every picture source and only taken from the img itself.
https://jsfiddle.net/roberthenniger/o6qzsh9m/
https://stackoverflow.com/questions/64431104/lazysizes-aspect-ratio-not-working-for-sources-when-width-and-height-place
Would expect the lazysizes to use the aspect ratio from the source instead of image since otherwise no different aspect ratio for different screen size is possible.
What happened instead
Lazysizes uses the aspect ratio from the img tag itself.
Tested on Chrome 85. on Mac, Safari 14.0
The text was updated successfully, but these errors were encountered: