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

feat: handles object-fit of img and video element #3218

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mmis1000
Copy link

@mmis1000 mmis1000 commented Nov 28, 2024

Summary

This PR fixes/implements the following bugs/features

  • Add object-fit support to img element
  • Add object-fit support to video element

Explain the motivation for making this change. What existing problem does the pull request solve?

My app use object-fit a lot and don't work well with html2canvas

Test plan (required)

I changed reftest of image and video element to include element with object-fit set

Code formatting

Please make sure that code adheres to the project code formatting. Running npm run format will automatically format your code correctly.

Closing issues

Fixes #3072, the codes are mostly copied from this issue

@mmis1000 mmis1000 marked this pull request as ready for review November 28, 2024 04:05
@mmis1000 mmis1000 force-pushed the feat/video-img-object-fit branch from bf0bf66 to c4c9be2 Compare November 28, 2024 04:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tutorial: How to support object-fit: contain and object-fit: cover
1 participant