blob: 635eb34fe90391d1666cea3e2301779c322a8c5e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<!DOCTYPE html>
<html>
<head>
<title>object-fit on video poster</title>
<style type="text/css">
img, embed, object, input, canvas, video {
width: 72px;
height: 72px;
margin: 2px 10px;
border: 1px solid black;
background-color: gray;
}
.group { object-fit: contain; }
.group > *:nth-child(1) { object-fit: fill; }
.group > *:nth-child(2) { object-fit: contain; }
.group > *:nth-child(3) { object-fit: cover; }
.group > *:nth-child(4) { object-fit: none; }
.group > *:nth-child(5) { object-fit: scale-down; }
.group > *:nth-child(6) { object-fit: inherit; }
.group > *:nth-child(7) { }
</style>
</head>
<body>
<div class="group">
<video poster="resources/circles-landscape.png"></video>
<video poster="resources/circles-landscape.png"></video>
<video poster="resources/circles-landscape.png"></video>
<video poster="resources/circles-landscape.png"></video>
<video poster="resources/circles-landscape.png"></video>
<video poster="resources/circles-landscape.png"></video>
<video poster="resources/circles-landscape.png"></video>
</div>
</body>
</html>
|