Strange behaviour of style sheets and tables

RESOLVED INVALID

Status

()

RESOLVED INVALID
17 years ago
17 years ago

People

(Reporter: moz, Assigned: attinasi)

Tracking

Trunk
x86
Windows 2000
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(7 attachments)

(Reporter)

Description

17 years ago
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 :-)
(Reporter)

Comment 1

17 years ago
Created attachment 85911 [details]
bug case 1
(Reporter)

Comment 2

17 years ago
Created attachment 85912 [details]
screen shot
(Reporter)

Comment 3

17 years ago
Created attachment 85913 [details]
screen shot
(Reporter)

Comment 4

17 years ago
Created attachment 85914 [details]
bug case 2
(Reporter)

Comment 5

17 years ago
Created attachment 85915 [details]
screen shot for case 2 - mozilla
(Reporter)

Comment 6

17 years ago
Created attachment 85917 [details]
screen shot for case 2 - explorer
(Reporter)

Updated

17 years ago
Summary: Strange behaviour of .css and tables → Strange behaviour of style sheets and tables
(Reporter)

Comment 7

17 years ago
Created attachment 85918 [details]
screen shot for case 2 - mozilla (this is the RIGHT version, don't look the other, please, I have no permission to delete it)
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
Last Resolved: 17 years ago
Resolution: --- → INVALID

Updated

17 years ago
QA Contact: petersen → amar
You need to log in before you can comment on or make changes to this bug.