Description
In the event that the writing-mode of a container or the document changes from horizontal to vertical, it would be helpful if there was a media query for writing-mode such that an image of a different orientation could be served up with the srcset
attribute.
Currently, it is possible to adjust orientation using transform: rotate(-90deg)
but a rotated image could end up overflowing the container especially if it is anything other than a square. For live example, please see demo.
Uncheck the toggle to go into horizontal mode and scroll down to the fourth image in the article. When the viewport is narrower than the width, there is a horizontal overflow, because this image was rotated.
Not sure how feasible it is to implement such a feature, but it would be a nice to have.