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
Layout sizes for video elements are too simplistic #31416
Comments
Relevant specification: https://html.spec.whatwg.org/multipage/media.html#concept-video-intrinsic-width |
I have been working with this a bit and thanks to your diff and a tad of poking around trying to understand how tags in html get read by the code now I have it passing the first 3 tests (although it is very unrefined as I have to yet think where everything will have to go to be tidy). Is looking into |
Yes, I think that's a useful model to follow! |
Awesome, I'll try to get the final two tests passing and cleaning up everything a bit. Thanks! |
Huh I think we are failing test 4 (the one when changing the src) because of #31415, since after some manual debugging, the sizes do seem to be changing but the The test for reference:
|
https://searchfox.org/mozilla-central/source/testing/web-platform/tests/html/semantics/embedded-content/the-video-element/intrinsic_sizes.htm tests various scenarios for sizing video elements. We don't implement the layout rules related to poster elements or aspect ratios at the moment, so we fail them all. The following is a patch that allows the first test (default object size) to pass:
The text was updated successfully, but these errors were encountered: