data-object-fit
polyfill/browser support
#38457
Labels
[Block] Cover
Affects the Cover Block - used to display content laid over a background image
[Type] Code Quality
Issues or PRs that relate to code quality
Description
I noticed that some blocks as the
core/video
block use an attribute likedata-object-fit
.This indicates that a polyfill should/can be used instead of native CSS
object-fit
.object-fit
/object-position
are now basically supported by all browsers. Does it still make sense to add these data attributes/polyfills?Step-by-step reproduction instructions
core/cover
block, assign a video to it.core/cover
block associated element and note that it has adata-object-fit
attribute (e.g. with valuecover
) assigned to it.Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: