Closed Bug 148607 Opened 23 years ago Closed 21 years ago

dol2day.de - Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it.

Categories

(Tech Evangelism Graveyard :: German, defect)

defect
Not set
trivial

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: ih, Unassigned)

References

()

Details

Attachments

(1 file)

The German-based Site Democracy Online Today, also know as Dol2Day, has a background image on its firstpage, where you login. In Internet Explorer (all Versions starting from 4), Opera (newest, other not tested) and KHTML based show it. Gecko based Browsers, i.e. Mozilla (tested from 0.9.8 - 1.0 RC3) d o n o t show it! This seems to be the code in question: "<div id="BackLayer" STYLE="position:absolute; pagey:0; z-index:-1;"> <table width="760" border="0" height="500"> <tr> <td><img src="start/hintergrund.jpg" width="760" height="500"></td> </tr> </table> </div>"
The page has the following script: if (document.layers) { ns = 1; ie = 0; } else { ns = 0; ie = 1; } function SetToCenter() { if (ns) { NewX = Math.round((window.innerWidth-760)/2); if (NewX < 0) NewX = 0; document.BackLayer.left = NewX; document.Layer.left = NewX; } if (ie) { NewX = Math.round((document.all.Startseite.offsetWidth-760)/2)-10; if (NewX < 0) NewX = 0; BackLayer.style.left = NewX; Layer.style.left = NewX; } } It is wrong as it thinks only document.layers or document.all are possible. The right script would be: if (document.getElementById) { ns = 0; ie = 0; moz = 1; } else if (document.all) { ns = 0; ie = 1; moz = 0; } else if (document.layers) { ns = 1; ie = 0; moz = 0; } function SetToCenter() { if (ns) { NewX = Math.round((window.innerWidth-760)/2); if (NewX < 0) NewX = 0; document.BackLayer.left = NewX; document.Layer.left = NewX; } if (ie) { NewX = Math.round((document.all.Startseite.offsetWidth-760)/2)-10; if (NewX < 0) NewX = 0; BackLayer.style.left = NewX; Layer.style.left = NewX; } if (moz) { NewX = Math.round((document.getElementById("Startseite").offsetWidth-760)/2)-10; if (NewX < 0) NewX = 0; document.getElementById("BackLayer").style.left = NewX; document.getElementById("Layer").style.left = NewX; } } but it still does not work :-( Anyway, confirming and reassigning to the right component (-> Europe:West)
Assignee: piskozub → nitot
Status: UNCONFIRMED → NEW
Component: Europe: Central → Europe: West
Ever confirmed: true
QA Contact: pali → brantgurganus2001
Summary: Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it. → [LAYERS] www.dol2day.de - Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it.
Actually this is a problem with "z-index:-1" and this is a DUP of a known problem. It seems it is a fault of Mozilla, after all :-( *** This bug has been marked as a duplicate of 78087 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
Summary: [LAYERS] www.dol2day.de - Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it. → www.dol2day.de - Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it.
"z-index: -1" changed to "z-index: 0" and added "z-index: 1"
Reopening, since the "known problem" is almost certainly INVALID or WONTFIX (invalid in standards, wontfix in quirks).
Status: RESOLVED → REOPENED
Resolution: DUPLICATE → ---
Boris, mark as WONTFIX bug 78087, not this. This is certainly a dup. *** This bug has been marked as a duplicate of 78087 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
The point is that if that bug is wontfix then this bug should be evangelized. Which is why I would prefer to keep it open. Marking dependency, however, so that if that one is ever "fixed" (very unlikely) this one can be resolved.
Status: RESOLVED → REOPENED
Depends on: 78087
Resolution: DUPLICATE → ---
Boris: I only wonder why you treated differently a similar bug 116021. You duped it yourself against bug 78087. This does not seem very consistent :-( Luckily this bug is not my in Evangelism precint :-) Removing myself from the CC: list.
OS: Linux → All
Hardware: PC → All
Summary: www.dol2day.de - Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it. → dol2day.de - Backgroundimage not showen in Mozilla! A L L other Browsers (not based on Gecko) shot it.
move...
Assignee: nitot → german
Status: REOPENED → NEW
Component: Europe: West → German
QA Contact: brantgurganus2001 → german
Boris, now that the other bug is going to be fixed once, thanks to changes in CSS 2.1, this should be a duplicate of that bug and no longer depending on bug 78087, right?
no <div ...> anymore on that page, the background image is now displayed with a current Mozilla CVS trunk build. -->fixed
Status: NEW → RESOLVED
Closed: 23 years ago21 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: