image-orientation-from-image-content-images.html (3140B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Images Module Level 3: image-orientation: from-image for content images</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-content-images-ref.html"> 9 <meta name=fuzzy content="0-5;0-250"> 10 <style> 11 div.image { 12 display: inline-block; 13 } 14 div.container { 15 display: inline-block; 16 width: 100px; 17 vertical-align: top; 18 image-orientation: from-image; 19 } 20 img { 21 width: 100px; 22 height: 100px; 23 background-repeat: no-repeat; 24 } 25 body { 26 overflow: hidden; 27 } 28 </style> 29 </head> 30 <body> 31 <p>The images should rotate respecting their EXIF orientation because 32 image-orientation: from-image is specified.</p> 33 <div class="container"> 34 <div class="image" style="content: url(support/exif-orientation-1-ul.jpg)"></div> 35 <br>Normal 36 </div> 37 <div class="container"> 38 <div class="image" style="content: url(support/exif-orientation-2-ur.jpg)"></div> 39 <br>Flipped horizontally 40 </div> 41 <div class="container"> 42 <div class="image" style="content: url(support/exif-orientation-3-lr.jpg)"></div> 43 <br>Rotated 180° 44 </div> 45 <div class="container"> 46 <div class="image" style="content: url(support/exif-orientation-4-lol.jpg)"></div> 47 <br>Flipped vertically 48 </div> 49 <br> 50 <div class="container"> 51 <div class="image" style="content: url(support/exif-orientation-5-lu.jpg)"></div> 52 <br>Rotated 90° CCW and flipped vertically 53 </div> 54 <div class="container"> 55 <div class="image" style="content: url(support/exif-orientation-6-ru.jpg)"></div> 56 <br>Rotated 90° CW 57 </div> 58 <div class="container"> 59 <div class="image" style="content: url(support/exif-orientation-7-rl.jpg)"></div> 60 <br>Rotated 90° CW and flipped vertically 61 </div> 62 <div class="container"> 63 <div class="image" style="content: url(support/exif-orientation-8-llo.jpg)"></div> 64 <br>Rotated 90° CCW 65 </div> 66 <br> 67 <div class="container"> 68 <img style="background-image: url(support/exif-orientation-5-lu.jpg)"></img> 69 <br>Rotated 90° CCW and flipped vertically 70 </div> 71 <div class="container"> 72 <img style="background-image: url(support/exif-orientation-6-ru.jpg)"></img> 73 <br>Rotated 90° CW 74 </div> 75 <div class="container"> 76 <img style="background-image: url(support/exif-orientation-7-rl.jpg)"></img> 77 <br>Rotated 90° CW and flipped vertically 78 </div> 79 <div class="container"> 80 <img style="background-image: url(support/exif-orientation-8-llo.jpg)"></img> 81 <br>Rotated 90° CCW 82 </div> 83 <br> 84 <div class="container"> 85 <div class="image" style="content: url(support/exif-orientation-9-u.jpg)"></div> 86 <br>Undefined (invalid value) 87 </div> 88 </body> 89 </html>