WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED WORKSFORME
54356
Relative width or height on video element make controls float away from the actual video
https://bugs.webkit.org/show_bug.cgi?id=54356
Summary
Relative width or height on video element make controls float away from the a...
Dimitri Glazkov (Google)
Reported
2011-02-13 08:46:46 PST
http://jsfiddle.net/dglazkov/BJTgu/2/embedded/result/
-- resize the screen to see the stuff.
Attachments
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2011-02-13 15:07:14 PST
The <video> is in an iframe, which is in a 1041px height div. A video is supposed to maintain its aspect ratio and render "inside the element's playback area such that the video content is shown centered in the playback area at the largest possible size that fits completely within it, with the video content's aspect ratio being preserved. Thus, if the aspect ratio of the playback area does not match the aspect ratio of the video, the video will be shown letterboxed or pillarboxed." The controls are always along the bottom of the element, so when the browser window is not wide enough the video is letterboxed and the controls aren't near the bottom of the video.
Dimitri Glazkov (Google)
Comment 2
2011-02-13 16:26:52 PST
(In reply to
comment #1
)
> The <video> is in an iframe, which is in a 1041px height div. A video is supposed to maintain its aspect ratio and render "inside the element's playback area such that the video content is shown centered in the playback area at the largest possible size that fits completely within it, with the video content's aspect ratio being preserved. Thus, if the aspect ratio of the playback area does not match the aspect ratio of the video, the video will be shown letterboxed or pillarboxed." > > The controls are always along the bottom of the element, so when the browser window is not wide enough the video is letterboxed and the controls aren't near the bottom of the video.
DOOOOOOH. Setting background: Black explains this all.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug