Replies: 1 comment
|
Hi, you are correct that that isn't supported. But I guess you can do that by having two picture elements, and show/hide depending on viewport width (using css)? |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I have a use case where I would like to have a single picture element where i render both portrait and landscape versions of an image depending on screen size. I can not see that this is possible with the current solution (please correct me if I'm wrong).
I assume this could be solved by adding an aspect ratio parameter to the
MediaConditionclass and then use that ratio for rendering. This might also apply to the focal point property since one might want different focal points when creating both portrait and landscape images from the same image.All reactions