Closed Bug 148543 Opened 22 years ago Closed 22 years ago

Strange behaviour of style sheets and tables

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: moz, Assigned: attinasi)

Details

Attachments

(7 files)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0rc3) Gecko/20020523
BuildID:    2002052306

Strange behaviour of .css and tables in Mozilla. There is only one behaviour in Internet Explorer but two different in Mozilla for a very similar page.

Reproducible: Always
Steps to Reproduce:
1. Open the Attached file "bug1.htm", at least in windows 2000 every text is centered (you can see my screenshot "mozilla1.png"). This does not happen with the Internet Explorer (you can see my screenshot "explorer1.png"). 
- The <hr> is empty in Mozilla and filled in black in Internet Explorer (who is to blame?).
- It seems a bug that inside the table the text is centered in Mozilla, though I can not be sure (you are the experts :-). 

2. Open the Attached file "bug2.htm", it is the "bug1.htm" but without the first line "<!DOCTYPE HTM ...". The Internet Explorer keeps showing the same image... but now Mozilla aligns the text at left and the table is not centered. (you can see my screenshots "mozilla2.png" and "explorer2.png"). 

Thank you for your attention (and your Mozilla :-)
Attached file bug case 1
Attached image screen shot
Attached image screen shot
Attached file bug case 2
Summary: Strange behaviour of .css and tables → Strange behaviour of style sheets and tables
that's MSIE5, and so it doesn't react on changed DOCTYPEs.

text-align:center; means to center the content (not the Element itself!) and has
to be inherited. In Sloppy-Mode (without the DOCTYPE) Mozilla doesn't inherit
this to avoid problems with currently existing invalid websites.
btw. MSIE6 behaves as Mozilla, except it centeres the table while being in
sloppy mode. Opera and konqueror behave always exact as Mozilla in sloppy-mode.

About the colored <hr>:
most browser use the CSS property background-color for this, MSIE uses color and
also knows the propietary HTML attribute color="".

..as this shows bugs in all browsers _but_ Mozilla, this is invalid.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
QA Contact: petersen → amar
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: