WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 27272
28705
<video> tag on a long page gets squished during scrolling
https://bugs.webkit.org/show_bug.cgi?id=28705
Summary
<video> tag on a long page gets squished during scrolling
Simone Manganelli
Reported
2009-08-25 02:11:50 PDT
Summary: When a video tag exists on a very vertically long webpage, the space that the video tag takes up in the page layout is correct. However, the actual video gets rendered in the wrong position. When onscreen, the video gets squished into ~1/2 the space that the video tag actually takes up in the layout, and as you scroll the webpage down, the video gets increasingly squished as it nears the visible top of the window. Steps to Reproduce: 1. Visit this website URL with
r47686
:
http://homepage.mac.com/simx/tests/webkit-video-tag-bug-test.html
. The video will autoplay. Note that it is already squished to about half its correct height. 2. Scroll down the page. Note that the video gets increasingly squished, to the point where it isn't even visible, even though a part of the video should still be visible on the page. 3. Scroll back up. Note that the video gets increasingly unsquished, but only to about half the height that it should be. 4. Control-click on the video, and select "Inspect Element". 5. Hover your mouse over the video tag in WebKit's inspector view. Note that the blue outline and tint that is applied to the video element shows that the video tag itself is taking up the correct space on the webpage no matter the scroll position; it's just the video that is being rendered improperly. Expected Results: I expect videos to play at their normal height. Actual Results: Depending on how far scrolled down you are on a page, a video can be completely squished vertically out of sight, or just squished to about one half its correct height. Regression: This issue does not happen with the stock version of Safari 4.0.3. Workarounds: In more complicated webpages, this issue can be mitigated by *not* applying width and height values on the video tag. Applying width/height by HTML attributes or by CSS styling both can trigger this bug more often.
Attachments
Add attachment
proposed patch, testcase, etc.
Simone Manganelli
Comment 1
2009-08-25 02:16:28 PDT
The comment about not applying height/width styling as a workaround is incorrect. I thought it worked, but it was actually due to something else. If the page takes a while to load, you can stop this bug from happening by stopping the page load *after* the video tag loads. The bug seems to be triggered at the precise moment that the page finishes loading. So, for example, on a page like this where the bug is triggered:
http://icanhascheezburger.com/2009/08/24/funny-pictures-video-skateboarding-cat/
You can actually *stop* the bug from being triggered by waiting for the video to start playing, and then pressing Cmd-. to stop the page from loading anything after that.
Simone Manganelli
Comment 2
2009-08-25 02:27:04 PDT
Movie of the problem:
http://homepage.mac.com/simx/.Movies/stupid_safari_scroll_video.mov
rdar://problem/7167245
Simone Manganelli
Comment 3
2009-08-25 02:54:15 PDT
This bug does not exist in WebKit
r45752
. It *does* exist in
r45754
. So either
r45753
or
r45754
introduced this problem.
Mark Rowe (bdash)
Comment 4
2009-08-25 08:36:30 PDT
Yup, <
http://trac.webkit.org/changeset/45754
> sounds like a plausible change to introduce this sort of problem.
Simon Fraser (smfr)
Comment 5
2009-08-25 08:45:39 PDT
Was fixed in
r46947
. See duplicate. *** This bug has been marked as a duplicate of
bug 27272
***
Simone Manganelli
Comment 6
2009-08-25 10:06:20 PDT
I am seeing this bug in
r47686
. Are you sure this is fixed, or it hasn't regressed?
Simon Fraser (smfr)
Comment 7
2009-08-25 10:20:15 PDT
I have tested the
r47686
nightly, and I can not reproduce the bug.
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