In some cases, when one of the parent elements in HTML is having margin
of padding
defined at the bottom or at the top, it will happen that your video
object can't stretch the source media to the fullest within itself. Even if you define the object-fit:cover
you will still have the small gap at the top or the bottom of the video
tag. This is happening only in Google Chrome as far as I know.
Asked
Active
Viewed 937 times
2

Mladen Janjetovic
- 13,844
- 8
- 72
- 82
2 Answers
0
The only thing that helped me solve this issue is to set the object-position: top
or object-position: bottom;
on the video
tag. It depends where the gap is.

Mladen Janjetovic
- 13,844
- 8
- 72
- 82