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)? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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
MediaCondition
class 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.Beta Was this translation helpful? Give feedback.
All reactions