Closed Bug 120535 Opened 23 years ago Closed 20 years ago

mondadori.com - text in table cells overlaps on images

Categories

(Tech Evangelism Graveyard :: Italian, defect, P2)

x86
Linux
defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: magicdice, Unassigned)

References

()

Details

(Keywords: platform-parity, Whiteboard: [havefix][havecontact])

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020116
BuildID:    2002011614

The text in the table in the bottom of the page overlaps with the images. In
comparison with IE, it seems that mozilla cannot apply the CSS formatting.

Reproducible: Always
Steps to Reproduce:
1. open page http://www.mondadori.com
2. look at the table in the bottom

Actual Results:  the text inside the cells overlap with the images and doesn't
have the correct font size and colour.

Expected Results:  the text doesn't overlap with images, and has the font size
and colour defined in the CSS.
Attached image screenshot of the page
That's exactly how NS4 shows the page.  Is this an effect of quirks mode?
Ok.  This is evangelism.  The page has:

// Function to write style sheet dependng on browser
if (is.ns)	{
  if (is.platform=='mac')	{
    document.write('<link rel="stylesheet" href="css/global_nsmac.css">');
  }
  if (is.platform=='win32')	{
    if (is.ns6)	{
      document.write('<link rel="stylesheet" href="css/global_ns6.css">');
    } else {
      document.write('<link rel="stylesheet" href="css/global_ns.css">');
    }
  }
} else {
  document.write('<link rel="stylesheet" href="css/global_ie.css">');
}

So what happens in Netscape on anything that's not windows or mac (eg on Linux)
is that the stylesheet is never loaded, since a <link> tag is never written!

Fixing this bug in the page makes it render correctly...
Assignee: karnaze → nitot
Status: UNCONFIRMED → NEW
Component: HTMLTables → Europe: West
Ever confirmed: true
Keywords: pp
Product: Browser → Tech Evangelism
QA Contact: amar → caillon
Version: other → unspecified
I didn't look deeply in the code, but using
if (is.ns)
{
	if (is.platform=='mac')
	{
		document.write('<link rel="stylesheet" href="css/global_nsmac.css">');
	}
	else
	{
		if (is.ns6)
		{
			document.write('<link rel="stylesheet" href="css/global_ns6.css">');
		}
		else
		{
			document.write('<link rel="stylesheet" href="css/global_ns.css">');
		}
	}
}
else
{
	document.write('<link rel="stylesheet" href="css/global_ie.css">');
}

should fix it. I dont have a mac to try out how does the page renders with the
mac stylesheet on mozilla...
Priority: -- → P2
Whiteboard: [havefix]
http://home.mondadori.com/credits/default.asp lists a bunch of people we can
contact.
Whiteboard: [havefix] → [havefix][havecontact]
can anyone contact them with the fix ?
Summary: text in table cells overlaps on images → mondadori.com - text in table cells overlaps on images
New Component
Component: Europe: West → Italian
italian default owner
Assignee: nitot → italian
QA Contact: z-caillon-obsolete2 → italian
The site is completely changed and the problem of text overlapping doesn't exist
anymore.
This bug is fixed now.
WFM
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → WORKSFORME
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: