lazysizes icon indicating copy to clipboard operation
lazysizes copied to clipboard

Access source attributes in lazyriasmodifyoptions

Open andershagbard opened this issue 3 years ago • 0 comments

Describe your problem/question Currently, I am calculating available sizes based on image width/height and aspect ratio. This is an issue when using a picture element with source within.

Make it reproduce-able https://jsfiddle.net/5k6evx18/1/ Check console. It only logs 0.5 for the img element.

andershagbard avatar Jan 10 '22 13:01 andershagbard