Save this as an html file and load it up in Android Chrome:
<html>
<body style="overflow:hidden;transform: scale(0.5, 0.5);">
<video controls>
<source src="http://techslides.com/demos/sample-videos/small.mp4">
</video>
</body>
</html>
It should look like this:
If you play around with it, you'll find that removing EITHER the overflow:hidden
or the transform:scale
will make the controls span the whole width of the video as expected. However the combination of these two styles makes any video controls incorrectly sized, as shown.
This question seems somewhat related and suggests adding a transform: translateZ(0)
to the containing element, however adding that translation either to the existing transform on the body or onto a new containing div does not resolve the issue.
Is this a bug in Android Chrome? I don't understand why the conjunction of these two styles should affect video control width.