Skip to content

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
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