fix(safari): resolve iOS device video masking issue with DOM overlay (breaking change) #782
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.

Same issue #780
Description
This PR focuses on fixing iOS compatibility issues in the
Safaricomponent.Because mobile-first is the priority, this fix introduces a breaking change to ensure stable rendering across devices.
Changes
<foreignObject>video rendering with a DOM overlay to solve Safari/iOS masking issues.widthandheightprops. The component size is now controlled by the wrapper<div>, enforcing the aspect ratio753/1203.srcorvideoSrc) is provided. Without media, only the frame is rendered.HTMLDivElementprops.mutedandplaysInlineto allow autoplay on mobile. Apostercan be added for better initial paint.aria-hidden="true"to the wrapper<div>for compliance.Motivation
Breaking Changes
widthandheightprops fromSafari.→ Consumers must now control size via wrapper CSS (e.g.,
w-[1203px],w-full, etc.).width/heightprops will need to migrate.Screenshots