Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix video having black border on top due to regression from #2608 #3392

Merged
merged 1 commit into from May 28, 2017

Conversation

Gargron
Copy link
Member

@Gargron Gargron commented May 28, 2017

The combination of object-fit, relative position 50% from top and translating it back upwards 50% is what allows us to crop the video properly, so it needs to be +50%-50%

The combination of object-fit, relative position 50% from top and translating it
back upwards 50% is what allows us to crop the video properly, so it needs to
be +50%-50%
Copy link
Contributor

@nolanlawson nolanlawson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in desktop Chrome, Edge, Firefox, and Safari, and I can reproduce the problem in all four as well as confirm that this PR fixes it.

Incidentally Edge doesn't support object-fit yet but it gracefully degrades (by having black bars on the left and right) and this PR is still an improvement because there's no more black bar on top.

@nolanlawson nolanlawson added the bug Something isn't working label May 28, 2017
@Gargron Gargron merged commit 3fa8512 into master May 28, 2017
@Gargron Gargron deleted the fix-video-cropping branch May 28, 2017 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants