blob: 11888fb2582af47e6a13394fda332482a5e9bf15 [file] [log] [blame]
<!DOCTYPE html>
<style>
div.container {
display: inline-block;
margin-right: 20px;
margin-bottom: 10px;
width: 100px;
vertical-align: top;
}
div.square {
width: 100px;
height: 100px;
border: 1px solid black;
}
</style>
<body>
<b>The images of the &lt;img&gt; elements with object-fit property should be rotated respecting their EXIF orientation.</b>
<br>
<br>
<div class="container">
<div class="square">
<div>
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px);">
</div>
</div>
<br>Normal
</div>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) scaleX(-1);">
</div>
<br>Flipped horizontally
</div>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) rotate(180deg);">
</div>
<br>Rotated 180&deg;
</div>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) scaleX(-1) rotate(180deg);">
</div>
<br>Flipped vertically
</div>
<br>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) rotate(90deg) scaleY(-1);">
</div>
<br>Rotated 90&deg; CCW and flipped vertically
</div>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) rotate(90deg);">
</div>
<br>Rotated 90&deg; CCW
</div>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) rotate(270deg) scaleY(-1);">
</div>
<br>Rotated 90&deg; CW and flipped vertically
</div>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px) rotate(270deg);">
</div>
<br>Rotated 90&deg; CW
</div>
<br>
<div class="container">
<div class="square">
<img src="resources/exif-orientation-1-ul.jpg" style="transform: translate(0, 25px);">
</div>
<br>Undefined (invalid value)
</div>
</body>