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

[WIP]: Improve how intrinsic sizes work for videos #31746

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

eerii
Copy link
Contributor

@eerii eerii commented Mar 18, 2024

Implements improved layout rules for video elements, including aspect ratios and removed poster/src elements. The base for this pr is the patch provided by @jdm in #31416 (comment).

The pr fixes the result of the wpt tests defined in intrinsic_sizes.htm. The relevant natural width/height specification is available at https://html.spec.whatwg.org/multipage/media.html#concept-video-intrinsic-width.

This change depends on #31706, since that fixes the onloadedmetadata event firing correctly. This was tested locally using that patch and all the tests pass. However, until that is merged, the 4th test will fail.

Needs changes after video autoplay rework in servo/media.


@servo-wpt-sync
Copy link
Collaborator

🛠 These changes could not be applied onto the latest upstream WPT. Servo's copy of the Web Platform Tests may be out of sync.

@eerii eerii changed the title Improve how intrinsic sizes work for videos [WIP]: Improve how intrinsic sizes work for videos Apr 4, 2024
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.

Layout sizes for video elements are too simplistic
2 participants