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)
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.
Comment 2•25 years ago
|
||
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.
Comment 3•25 years ago
|
||
Updated•25 years ago
|
Comment 4•25 years ago
|
||
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.
Comment 5•25 years ago
|
||
Don, sounds like a problem in the background tiling code.
Assignee: kmcclusk → dcone
| Assignee | ||
Updated•25 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Updated•25 years ago
|
Summary: CSS2 background-repeat: url(...) repeat-x fails under some circumstances → background: url(a) repeat-x doesn't repaint (<div><img src="a"></div>)
Updated•25 years ago
|
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]
| Assignee | ||
Comment 6•24 years ago
|
||
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
Comment 8•24 years ago
|
||
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.
Updated•16 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•