Skip to content

Commit

Permalink
Add warning for CSS image-orientation's limitation on cross-origin …
Browse files Browse the repository at this point in the history
…images (#23513)

Fixes #12484
  • Loading branch information
tlylt authored Jan 11, 2023
1 parent ae1c732 commit 6c29d8b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/en-us/web/css/image-orientation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ image-orientation: unset;
- `from-image`
- : Default initial value. The [EXIF](https://en.wikipedia.org/wiki/EXIF) information contained in the image is used to rotate the image appropriately.

> **Warning:** `image-orientation: none;` **does not** override the orientation of non-secure-origin images as encoded by their [EXIF](https://en.wikipedia.org/wiki/EXIF) information, due to security concerns. Find out more from [the CSS working group draft issue](https://github.com/w3c/csswg-drafts/issues/5165).

## Description

This property is intended _only_ to be used for the purpose of correcting the orientation of images which were shot with the camera rotated. It should _not_ be used for arbitrary rotations. For any purpose other than correcting an image's orientation due to how it was shot or scanned, use a {{cssxref("transform")}} property with the `rotate` keyword to specify rotation. This includes any user-directed changes to the orientation of the image, or changes required for printing in portrait versus landscape orientation.
Expand Down

0 comments on commit 6c29d8b

Please sign in to comment.