| <!DOCTYPE html> |
| <html> |
| <head> |
| <meta charset="utf-8"> |
| <title>CSS Images Module Level 3: image-orientation: none</title> |
| <script src=/common/get-host-info.sub.js></script> |
| <link rel="author" title="Noam Rosenthal" href="mailto:noam@webkit.org"> |
| <link rel="help" href="https://github.com/w3c/csswg-drafts/issues/5165"> |
| <link rel="match" href="reference/image-orientation-none-cross-origin-ref.html"> |
| <meta name=fuzzy content="10;100"> |
| <style> |
| body { |
| overflow: hidden; |
| image-orientation: none; |
| } |
| div { |
| display: inline-block; |
| width: 100px; |
| vertical-align: top; |
| } |
| </style> |
| </head> |
| <body> |
| <p>The following images should not be identical.</p> |
| <p>The image should not rotate respecting their EXIF orientation because |
| image-orientation: none is specified.</p> |
| <div><img src="support/exif-orientation-3-lr.jpg"/></div> |
| |
| <p>This image should rotate respecting their EXIF orientation because |
| image-orientation: none should be effectively ignored for opaque (cross-origin) images.</p> |
| <div><img id="corsImage" src="support/exif-orientation-3-lr.jpg"/></div> |
| <script> |
| const img = document.getElementById('corsImage') |
| img.src = img.src.replace(new URL(img.src).origin, get_host_info().HTTP_REMOTE_ORIGIN) |
| </script> |
| </body> |
| </html> |