5 <title>object-fit on video poster
</title>
6 <style type=
"text/css">
7 img
, embed
, object
, input
, canvas
, video
{
11 border: 1px solid black
;
12 background-color: gray
;
15 .group { object-fit: contain
; }
16 .group > *:nth-child(1) { object-fit: fill
; }
17 .group > *:nth-child(2) { object-fit: contain
; }
18 .group > *:nth-child(3) { object-fit: cover
; }
19 .group > *:nth-child(4) { object-fit: none
; }
20 .group > *:nth-child(5) { object-fit: scale-down
; }
21 .group > *:nth-child(6) { object-fit: inherit
; }
22 .group > *:nth-child(7) { }
28 <video poster=
"resources/circles-landscape.png"></video>
29 <video poster=
"resources/circles-landscape.png"></video>
30 <video poster=
"resources/circles-landscape.png"></video>
31 <video poster=
"resources/circles-landscape.png"></video>
32 <video poster=
"resources/circles-landscape.png"></video>
33 <video poster=
"resources/circles-landscape.png"></video>
34 <video poster=
"resources/circles-landscape.png"></video>