aFarkas/lazysizes

Access source attributes in lazyriasmodifyoptions

andershagbard opened this issue · 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.