I'm calling a video in a parent div with the following definition:
div {
width: 100%;
height: 400px;
}
And as child element the tag <video>
com:
video {
height: 400px;
width: 100%;
object-fit: cover;
background-color: #000;
}
In Firefox Developer Edition it works normally, both crop object-fit
and height 400px
but in Chrome it does not. Or the video gets a lot louder than it should or full screen (if I use vh
as drive).