image-orientation-from-image-embedded-content-ref.html (1867B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Images Module Level 3: image-orientation: from-image in embedded content (reference)</title> 6 <link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org"> 7 <link rel="help" href="https://drafts.csswg.org/css-images-3/#propdef-image-orientation"> 8 <style> 9 iframe { 10 display: inline-block; 11 width: 120px; 12 height: 110px; 13 vertical-align: top; 14 } 15 embed { 16 object-fit: none; 17 object-position: top left; 18 image-orientation: from-image; 19 } 20 object { 21 object-fit: none; 22 object-position: top left; 23 image-orientation: from-image; 24 } 25 </style> 26 </head> 27 <body> 28 <p>The images should rotate respecting their EXIF orientation because image 29 documents always respect the orientation, regardless of the image-orientation 30 property.</p> 31 <iframe src="../support/exif-orientation-1-ul-pre-rotated.jpg" frameborder=0></iframe> 32 <embed type="image/jpeg" src="../support/exif-orientation-2-ur-pre-rotated.jpg" width="120" height="110px"> 33 <object type="image/jpeg" data="../support/exif-orientation-3-lr-pre-rotated.jpg" width="120" height="110px"></object> 34 <iframe src="../support/exif-orientation-4-lol-pre-rotated.jpg" frameborder=0></iframe> 35 <br> 36 <iframe src="../support/exif-orientation-5-lu-pre-rotated.jpg" frameborder=0></iframe> 37 <embed type="image/jpeg" src="../support/exif-orientation-6-ru-pre-rotated.jpg" width="120" height="110px"> 38 <object type="image/jpeg" data="../support/exif-orientation-7-rl-pre-rotated.jpg" width="120" height="110px"></object> 39 <iframe src="../support/exif-orientation-8-llo-pre-rotated.jpg" frameborder=0></iframe> 40 <br> 41 <iframe src="../support/exif-orientation-9-u-pre-rotated.jpg" frameborder=0></iframe> 42 </body> 43 </html>