Closed Bug 296557 Opened 20 years ago Closed 19 years ago

Mozilla browser do not center correctly backgroud image also if I have set it by javascripts or CSS stylesheet

Categories

(Core :: Layout, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 243751

People

(Reporter: igor.gastaldello, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050529
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b2) Gecko/20050529

a center background-image sets by css styleshhet or by javascripts 
is not center on page, differently by other browser.

In css i wrote
BODY { 
...
  background-image: url(img-url);
  background-position: center;
...
but image is not center in page 

the same error appears if this value is set by javascript
     document.body.style.backgroundImage="img-url"; 
     document.body.style.backgroundPosition="center";


Reproducible: Always

Steps to Reproduce:
1.import a css in a html page
2.in body section write:
   BODY { 
    ...
     background-image: url(img-url);
     background-position: center;
    ...
3.write samething in the body of the html page.
4.Show the page in browser an the image is not center on the screen. 
also if you set this value from javascripts.

Actual Results:  
the centered image is not centered.


try it in mozilla is shown differntly than all other browser like IE or Firefox

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
  <meta http-equiv="content-type" content="text/html; charset=windows-1250">
  <meta name="generator" content="PSPad editor, www.pspad.com">
  <title></title>
  </head>
  <body style="background: #669933;  color: rgb(0,0,0);  font-family: Arial,
Verdana, sans-serif;  background-image: url(img1280/layout_07.jpg);
background-position: center;">
     bla bla
   </body> 

  </body>
</html>
Assignee: jag → nobody
Component: XP Apps → Layout
Product: Mozilla Application Suite → Core
QA Contact: layout
Version: unspecified → Trunk
Duplicate of bug 243751?
maybe this bug is a duplicate, but try to show this page 
on mozilla nightly browser 2005052905 or later.

http://elbagareo.altervista.org/Cartella/index.html

This show that the bug is not fixed yet. :)

My browser version is:
Mozilla 1.8b2 Mozilla/5.0 
Windows; U; Windows NT 5.1; en-US; rv:1.8b2) 
Gecko/20050529
http://elbagareo.altervista.org/Cartella/index.html seems to be 404.

*** This bug has been marked as a duplicate of 243751 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.