Closed
Bug 546071
Opened 15 years ago
Closed 15 years ago
Loading Youtube in overflow:hidden div causes 1-pixel jog
Categories
(Core :: Web Painting, defect, P2)
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | final+ |
People
(Reporter: amy, Assigned: roc)
References
()
Details
(Keywords: regression)
Attachments
(2 files)
193 bytes,
text/html
|
Details | |
5.53 KB,
patch
|
MatsPalmgren_bugz
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-us) AppleWebKit/531.21.8 (KHTML, like Gecko) Version/4.0.4 Safari/531.21.10
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6
In the Mac version of Firefox 3.6 only (not 3.5.x or before) including YouTube videos (or any Flash) seems to cause a weird rendering error where the area OVER the overflow:hidden DIV is shifted.
See the error:
http://sequencemediaworks.com/etc/firefox_3_6/youtube.html
But the overflow:hidden doesn't always cause this problem:
http://sequencemediaworks.com/etc/firefox_3_6/ok.html
And previous versions of Firefox don't have this problem. Safari doesn't have this problem.
Reproducible: Always
Steps to Reproduce:
1. Create an HTML page with an overflow:hidden DIV, put inside it a DIV with a YouTube video.
Actual Results:
The graphics above the overflow:hidden DIV are shifted to the right by 1 pixel.
Expected Results:
No pixel jog.
Updated•15 years ago
|
Component: General → Layout: View Rendering
Keywords: css2 → regression
Product: Firefox → Core
QA Contact: general → layout.view-rendering
Hardware: x86 → All
Version: 3.6 Branch → 1.9.2 Branch
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → roc
blocking2.0: --- → ?
New data point:
If the window.innerWidth reports an ODD number then the problems does NOT show up. If the window.innerWidth is EVEN then the problem shows up...
Assignee | ||
Comment 2•15 years ago
|
||
This testcase requires the test plugin (application/x-test).
Assignee | ||
Comment 3•15 years ago
|
||
We need to compute the "view to widget offset" for the plugin's view. It doesn't work properly as-is because the widget for the plugin isn't managed by the view (the view's mWindow is null).
Attachment #428733 -
Flags: review?(matspal)
Assignee | ||
Updated•15 years ago
|
Whiteboard: [needs review]
Assignee | ||
Updated•15 years ago
|
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Updated•15 years ago
|
Attachment #428733 -
Flags: review?(matspal) → review+
Comment 4•15 years ago
|
||
Comment on attachment 428733 [details] [diff] [review]
fix
Do we need to bump the IID for nsIView? Adding non-virtual methods
isn't a problem, but I worry about adding mViewToWidgetOffset before
mVFlags which changes its offset. nsIView::GetZIndex() is inline
and uses mVFlags which would require recompiling a consumer.
r=mats if that isn't a problem
Updated•15 years ago
|
Whiteboard: [needs review]
Assignee | ||
Comment 6•15 years ago
|
||
I landed this, but the reftest failed on all platforms so I backed it out.
Whiteboard: [needs landing]
Assignee | ||
Comment 7•15 years ago
|
||
Hmm, the reftest passes when I push this patch to the try server. I'll try relanding.
Whiteboard: [needs landing]
Assignee | ||
Comment 8•15 years ago
|
||
http://hg.mozilla.org/mozilla-central/rev/b3b635d4167d
Relanded. The test failed again, but the test failure seems to be because the test plugin does not load on any of the tests on Tinderbox. haveTestPlugin is in fact false on Tinderbox, so the various plugin tests pass since they're conditioned on haveTestPlugin. I made this test be conditioned on haveTestPlugin too, and filed bug 552365 about the missing test plugin.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Whiteboard: [needs landing]
Assignee | ||
Comment 9•15 years ago
|
||
Actually, why do we have haveTestPlugin? Mac, Windows and X have it. Shouldn't we just require that if your platform wants to pass tests, you have a test plugin?
Assignee | ||
Comment 10•15 years ago
|
||
And definitely, if Mac, Windows or X can't load the test plugin, something should go red.
http://hg.mozilla.org/mozilla-central/rev/2de42ef0e5a9 was from back when we'd just started using the test plugin. (Was it not present on all platforms then?) Sounds like it makes sense to get rid of haveTestPlugin.
Assignee | ||
Updated•15 years ago
|
blocking2.0: ? → final+
Priority: -- → P2
Updated•6 years ago
|
Component: Layout: View Rendering → Layout: Web Painting
You need to log in
before you can comment on or make changes to this bug.
Description
•