Re: [csswg-drafts] [css-images] Should the values of image-orientation include the <angle> variants? (#4164)

> If you have a compelling reason to override an image's built-in orientation, please state it here! The CSS-WG is interested in these cases.

I have one:

I'm currently looking at putting an image on my personal site that is viewable both upright, and when rotated 90 degrees (and everything inbetween actually). That is to say, it doesn't have a single direction that is objectively up. The only reason it kinda does, is because it needs to do so to fit into a digital image file.
Now, I would like to switch between these two orientations based on the user's screen orientation, so that on a landscape display, the image will be in landscape also, while on a portrait display, the image will be in portrait mode. This would make the image fit more nicely on the screen as a whole.

My current workaround is to host two copies of the image, with one being rotated 90 degrees, so that I can set `content: url("image_rotated.png");` in a media query. This works fine except that the browser has to re-fetch what is basically the same image when the window resizes.

-- 
GitHub Notification of comment by Psychpsyo
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/4164#issuecomment-4308902076 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 23 April 2026 23:03:03 UTC