Skip to content

Issue with "image-orientation": cross-origin limitations #12484

Closed
@matthewwithanm

Description

@matthewwithanm

MDN URL: https://developer.mozilla.org/en-US/docs/Web/CSS/image-orientation

What information was incorrect, unhelpful, or incomplete?

As discussed in w3c/csswg-drafts/issues/5165, this behavior is no longer supported for cross-origin images. This severely limits its usefulness and means that the old default behavior (where EXIF data was ignored) can no longer be achieved for cross-origin images.

What did you expect to see?

The page should probably have a big callout about this.

Did you test this? If so, how?

Yes, I created a page that loads an image with an EXIF rotation and set image-orientation: none on it. When using a cross-origin image, the image was flipped according to the EXIF data (in Chrome). When using a same-origin image, the EXIF data was ignored.

MDN Content page report details

Metadata

Metadata

Assignees

No one assigned

    Labels

    Content:CSSCascading Style Sheets docseffort: smallThis task is a small effort.help wantedIf you know something about this topic, we would love your help!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions