Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>CSS Images Module Level 3: image-orientation with background properties</title>
<link rel="author" title="Stephen Chenney" href="mailto:schenney@chromium.org">
<link rel="match" href="reference/image-orientation-background-properties-border-radius-ref.html">
<meta name=fuzzy content="0-3;0-331">
<style>
div {
position: absolute;
width: 200px;
height: 200PX;
background-image: url(support/exif-orientation-5-lu.jpg);
background-repeat: no-repeat;
border-radius: 5px;
}
.repeat {
background-repeat: repeat;
top: 20px;
left: 20px;
}
.position {
background-position: bottom right;
top: 20px;
left: 240px;
}
.cover {
background-size: cover;
top: 240px;
left: 20px;
}
.contain {
background-size: contain;
top: 240px;
left: 240px;
}
</style>
</head>
<body>
<div class="repeat">
</div>
<div class="position">
</div>
<div class="cover">
</div>
<div class="contain">
</div>
</body>
</html>