28 lines
855 B
HTML
28 lines
855 B
HTML
<!DOCTYPE html>
|
|
|
|
<html>
|
|
<head>
|
|
<title>object-fit, landscape images smaller than content box</title>
|
|
<style type="text/css">
|
|
img {
|
|
display: inline-block;
|
|
width: 144px;
|
|
height: 144px;
|
|
margin: 10px;
|
|
border: 1px solid black;
|
|
background-color: gray;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
|
|
<!-- Small images, should be scaled up when allowed. -->
|
|
<img style="object-fit: fill;" src="../resources/circles-landscape-small.png">
|
|
<img style="object-fit: contain;" src="../resources/circles-landscape-small.png">
|
|
<img style="object-fit: cover;" src="../resources/circles-landscape-small.png">
|
|
<img style="object-fit: none;" src="../resources/circles-landscape-small.png">
|
|
<img style="object-fit: scale-down;" src="../resources/circles-landscape-small.png">
|
|
|
|
</body>
|
|
</html>
|