| <!DOCTYPE html> |
| <style> |
| div.container { |
| display: inline-block; |
| margin-right: 20px; |
| margin-bottom: 10px; |
| width: 100px; |
| vertical-align: top; |
| } |
| div.border { |
| border: 1px solid black; |
| } |
| div.border.horizontal { |
| width: 100px; |
| } |
| div.border.vertical { |
| width: 50px; |
| } |
| div.box { |
| border-image-slice: 10 fill; |
| border-width: 10px; |
| border-style: solid; |
| image-rendering: crisp-edges; |
| } |
| div.box.horizontal { |
| width: 80px; |
| height: 30px; |
| } |
| div.box.vertical { |
| width: 30px; |
| height: 80px; |
| } |
| </style> |
| <body> |
| <b>The CSS border images should be rotated respecting their EXIF orientation.</b> |
| <br> |
| <br> |
| <div class="container"> |
| <div class="horizontal border"> |
| <div class="horizontal box" style="border-image-source: url('resources/exif-orientation-1-ul.jpg');"></div> |
| </div> |
| <br>Normal |
| </div> |
| <div class="container"> |
| <div class="horizontal border"> |
| <div class="horizontal box" style="border-image-source: url('resources/exif-orientation-2-ur.jpg');"></div> |
| </div> |
| <br>Flipped horizontally |
| </div> |
| <div class="container"> |
| <div class="horizontal border"> |
| <div class="horizontal box" style="border-image-source: url('resources/exif-orientation-3-lr.jpg');"></div> |
| </div> |
| <br>Rotated 180° |
| </div> |
| <div class="container"> |
| <div class="horizontal border"> |
| <div class="horizontal box" style="border-image-source: url('resources/exif-orientation-4-lol.jpg');"></div> |
| </div> |
| <br>Flipped vertically |
| </div> |
| <br> |
| <div class="container"> |
| <div class="vertical border"> |
| <div class="vertical box" style="border-image-source: url('resources/exif-orientation-5-lu.jpg');"></div> |
| </div> |
| <br>Rotated 90° CCW and flipped vertically |
| </div> |
| <div class="container"> |
| <div class="vertical border"> |
| <div class="vertical box" style="border-image-source: url('resources/exif-orientation-6-ru.jpg');"></div> |
| </div> |
| <br>Rotated 90° CCW |
| </div> |
| <div class="container"> |
| <div class="vertical border"> |
| <div class="vertical box" style="border-image-source: url('resources/exif-orientation-7-rl.jpg');"></div> |
| </div> |
| <br>Rotated 90° CW and flipped vertically |
| </div> |
| <div class="container"> |
| <div class="vertical border"> |
| <div class="vertical box" style="border-image-source: url('resources/exif-orientation-8-llo.jpg');"></div> |
| </div> |
| <br>Rotated 90° CW |
| </div> |
| <br> |
| <div class="container"> |
| <div class="horizontal border"> |
| <div class="horizontal box" style="border-image-source: url('resources/exif-orientation-9-u.jpg');"></div> |
| </div> |
| <br>Undefined (invalid value) |
| </div> |
| </body> |