-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
data-ratio and data-aspect-ratio #557
Comments
I did just realize that the calculations are inverses, just to make it a little more confusing :)
|
I will fix sorry. |
Could you please test the newest version and confirm that it fixes your issue. I will then do a new release and update the readme. The property is now |
Looks good, except I believe it may be now |
Is there any reason there are two differently named data attributes that seem to me that they could be consolidated into one?
data-ratio
described onhttp://afarkas.github.io/lazysizes/rias/
to calculate the height of an image
data-aspectratio
described onhttps://github.com/aFarkas/lazysizes/tree/gh-pages/plugins/parent-fit
to calculate height of image
Can parent-fit plugin just use
data-ratio
so I don't have to define the ratio twice? Minor complaint, mostly just making sure I'm not missing the reason why either of these values (when using both plugins) would ever be different?I'm game for you to just close this issue, I just thought it was interesting/confusing when using both of these plugins together and wanted to bring it to your attention. I suppose the only change would be to implement data-ratio into the parent-fit plugin, and optionally deprecate data-aspectratio.
Thanks for your time.
The text was updated successfully, but these errors were encountered: