image-orientation-from-image-embedded-content.html (1887B)
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</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 <link rel="match" href="reference/image-orientation-from-image-embedded-content-ref.html"> 9 <meta name=fuzzy content="0-5;0-200"> 10 <style> 11 iframe { 12 display: inline-block; 13 width: 120px; 14 height: 110px; 15 vertical-align: top; 16 image-orientation: from-image; 17 } 18 embed { 19 object-fit: none; 20 object-position: top left; 21 image-orientation: from-image; 22 } 23 object { 24 object-fit: none; 25 object-position: top left; 26 image-orientation: from-image; 27 } 28 </style> 29 </head> 30 <body> 31 <p>The images should rotate respecting their EXIF orientation because image 32 documents always respect the orientation, regardless of the image-orientation 33 property.</p> 34 <iframe src="support/exif-orientation-1-ul.jpg" frameborder=0></iframe> 35 <embed type="image/jpeg" src="support/exif-orientation-2-ur.jpg" width="120" height="110px"> 36 <object type="image/jpeg" data="support/exif-orientation-3-lr.jpg" width="120" height="110px"></object> 37 <iframe src="support/exif-orientation-4-lol.jpg" frameborder=0></iframe> 38 <br> 39 <iframe src="support/exif-orientation-5-lu.jpg" frameborder=0></iframe> 40 <embed type="image/jpeg" src="support/exif-orientation-6-ru.jpg" width="120" height="110px"> 41 <object type="image/jpeg" data="support/exif-orientation-7-rl.jpg" width="120" height="110px"></object> 42 <iframe src="support/exif-orientation-8-llo.jpg" frameborder=0></iframe> 43 <br> 44 <iframe src="support/exif-orientation-9-u.jpg" frameborder=0></iframe> 45 </body> 46 </html>