blob: c6082a4785fe1f3203ffc7b3a16154dad0c87669 [file] [log] [blame]
<!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&deg;
</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&deg; 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&deg; 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&deg; 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&deg; 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>