2
I’m calling a video on a father div with the following definition:
div {
width: 100%;
height: 400px;
}
And as child element the tag <video> with:
video {
height: 400px;
width: 100%;
object-fit: cover;
background-color: #000;
}
In Firefox Developer Edition works normally, both the Crop’s object-fit as to the height of 400px but not in Chrome. Either the video gets much louder than it should or in full screen (if I use vh as a unit).


It worked perfectly, thank you!
– Luan