-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Video elements should have a default intrinsic ratio #3090
Comments
So the intrinsic ratio would be 2? I wonder why video has one but other replaced elements do not. |
Does |
cc @whatwg/media |
That link states:
And the HTML spec says:
|
Okay, so maybe this is all defined, but it's just hard to follow? |
I know that this isn't entirely interoperable, or at least it wasn't a few years ago. At different points in time, the right thing has been to either have a default intrinsic ratio (2) or not. @nox, can you write some tests to see what the majority behavior is? If the specs don't agree, we should change them to agree. |
Sure, will do that today. Here are the tests I think we need:
Should we also have more tests with only a specific width or height, checking that the other dimension respects the aspect ratio of the poster frame? |
I will port them to WPT. |
Rendering
<video width=500 style="border: 1px solid red">
renders a 500x250 box in all user agents, this means that the following rule apply, from CSS:But the HTML spec doesn't specify the default intrinsic ratio of the video element.
The text was updated successfully, but these errors were encountered: