Closed Bug 49454 Opened 25 years ago Closed 24 years ago

background: url(a) repeat-x doesn't repaint (<div><img src="a"></div>) [BG]

Categories

(Core Graveyard :: GFX, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME
Future

People

(Reporter: jsp, Assigned: dcone)

Details

(Keywords: css1, platform-parity, testcase)

Attachments

(2 files)

The following HTML/CSS is intended to produce a horizontal band the width of the div. background.gif should be repeated horizontally as many times as necessary to fill the div. A hidden instance of the background image is included in the div to give the div exactly the height needed to display the image. (Without some content, the div simply would not appear.) <html> <body> <div style="background: url('background.gif') repeat-x;"><img src= "background.gif"></div> </body> </html> When the page is initially loaded, it displays fine. If the page must be redrawn, some or all of the band disappears, and is never redrawn, even if the page is reloaded in the same or a new window. The band always displays properly if 'style="visibility: hidden;"' is added to the img tag.
Created a test case. If you resize the window, the background image applied completely dispears. If you move the window around to force painting, only parts of the image get redrawn and incorrectly at that. Looks like the repeat-x doesn't really matter. Adding text before or after the image also doesn't matter. Specifying a height for either the div or the image is a workaround.
Attached file testcase
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: testcase
In further testing, it doesn't matter if it's a GIF or JPEG but it must be the SAME image for both the IMG tag and the background.
Don, sounds like a problem in the background tiling code.
Assignee: kmcclusk → dcone
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Keywords: correctness, css1, pp
Summary: CSS2 background-repeat: url(...) repeat-x fails under some circumstances → background: url(a) repeat-x doesn't repaint (<div><img src="a"></div>)
Summary: background: url(a) repeat-x doesn't repaint (<div><img src="a"></div>) → background: url(a) repeat-x doesn't repaint (<div><img src="a"></div>) [BG]
I think this is a dup of that other background problem I sent back to you..about the updating... I will give this to you to dup..
Assignee: dcone → kmcclusk
Status: ASSIGNED → NEW
Reassigning to Don.
Assignee: kmcclusk → dcone
Works for me with 2001102503 build on WINNT. Marking WFM.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → WORKSFORME
Works for me, too, both with the attachment and the original test case. Mozilla 2001101003 on Windows 2000.
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: