Closed Bug 467029 Opened 16 years ago Closed 16 years ago

Painting of background image sometimes fails with semi-trans images

Categories

(Core :: Layout: Images, Video, and HTML Frames, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: alfredkayser, Assigned: roc)

References

Details

(Keywords: fixed1.9.1, regression)

Attachments

(6 files, 1 obsolete file)

Attached image Example of badly drawn thumb (deleted) —
Painting of background image sometimes fails in Nautipolis theme.

How to reproduce:
1. Install Nautipolis theme (1.8.43 is the latest)
2. Open a long webpage, so that there is a vertical scrollbar.
3. Place another window on top of FF
4. Slowly move the window downwards so that a piece of 'thumb' of the scrollbar becomes visible.
5. Notice how the background is painted differently than the rest of the thumb.
6. Forcing a complete redraw, the thumb is then drawn correctly.

This is not happening in FF3.0 (and older), and only started to happen in FF3.1 nightlies, since early november.

This is probably caused by bug 458487.

Note, the same symptom is also visible in the 'panel' buttons of the Tools/Addon window (using the Nautipolis theme).
Attached image This is how it should look like (deleted) —
Note, this problem with the scrollbar can also be reproduced by making the window smaller or larger so that the ratio or size of the thumb changes.
Blocks: 458487
No longer depends on: 458487
Need a reduced testcase
Reduced testcase:
Add the following in userChrome.css, use default theme, restart FF, open Tools/Options, and notice the background issue on the panel buttons when hovered upon...

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);
@namespace html url(http://www.w3.org/1999/xhtml);
.paneSelector>radio{
	border:0px outset threedface!important;
	background:threedface url(file:///c:/mozthemes/NautiPolis/Common/global/toolbar-bg.png)!important}
.paneSelector>radio:hover{
	border:1px outset threedface!important;
	background:#CCCCFF url(file:///c:/mozthemes/NautiPolis/Common/global/toolbar-bg.png)!important}
Attached image The background image needed to reproduce the effect. (obsolete) (deleted) —
Note, this only seems to happen with an background image with alpha transparency, and a border set, and within 'XUL' space (or userChrome).
Attachment #351154 - Attachment is obsolete: true
Attachment #351155 - Attachment mime type: text/html → image/png
This testcase show how the problem can be easily reproduced in content space, so it will impact webpages. 
The aspects that are needed to trigger this effect:
1. Semi-transparent background
2. Non-zero border width

What seems to happen is that whole background is drawn, but the background image has a vertical offset...
Requesting blocking 1.9.1 as this is a layout/graphical/image regression (caused by bug 458487) from FF3.0 that we don't to appear in 3.1.
Flags: blocking1.9.1?
Note, that with the last testcase, one can also show how partial redraws fails.
Move another window on top of the testcase and slowly drag it away so that the boxes are partially redrawn. It seems that the vertical offset is sometimes wrong and sometimes correct, depending whether the full height or only a part of the height of a box needs to be redrawn.
Summary: Painting of background image sometimes fails in Nautipolis theme → Painting of background image sometimes fails with semi-trans images
Assignee: nobody → roc
Seems to be fixed by the patch in bug 466258.
Whiteboard: [depends on 466258]
Should have been fixed on trunk by the fixing of bug 466258.
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
Whiteboard: [depends on 466258]
Note, bug 466258 is blocking 1.9.1.
Confirmed in Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2a1pre) Gecko/20081208 Minefield/3.2a1pre ID:20081208040950.
Can this also be pushed to 1.9.1?
Verified with Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b3pre) Gecko/20081213 Shiretoko/3.1b3pre ID:20081213034757.

Thanks!
Flags: blocking1.9.1? → blocking1.9.1+
Keywords: fixed1.9.1
Product: Core → Core Graveyard
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: