Closed Bug 285491 Opened 19 years ago Closed 19 years ago

[CSS] complex stylesheets causes rendering to fail completely

Categories

(Core :: Layout, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 282754

People

(Reporter: awuest, Unassigned)

References

()

Details

Attachments

(4 files, 1 obsolete file)

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b) Gecko/20050217
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b) Gecko/20050217

When viewing this site with Firefox 1.0.1, the site displays correctly. Using
this Mozilla build, rendering completely fails, and nearly nothing is rendered.
The page (xhtml) and the css used validate without failure!

Since its quite difficult to describe, see attachements. But in short, Mozilla
simply creates havoc with this specific page.

Reproducible: Always

Steps to Reproduce:
1. Go to webpage listed above.
Actual Results:  
Page rendered completely wrong.

Expected Results:  
Page renderes correctly (ok, this all sounds quite stupid, but what should I say...)
The correct rendering with Firefox 1.0.1.
Screenshot of Mozilla 1.8b wrongly rendering the page.
Ah, yes, I forgot, Mozilla receives the full page, not that you think that the
xhtml file is bad.

Further, the xhtml file seems to be parsed correctly, at least the dom tree
viewed with the dom inspector looks sane.
Same with Firefox nightbuild
-> Core / Layout (but maybe Tech Evang issue)

Page uses many elements which have height:auto and overflow-x and overflow-y set
to hidden. If I changed height for example of menu bar to some value, it shows
clearly.
Assignee: general → nobody
Severity: major → normal
Component: General → Layout
Product: Mozilla Application Suite → Core
QA Contact: general → layout
Version: unspecified → Trunk
An extremely simplified version of this page and css can be found at
http://n.ethz.ch/student/awuest/testcases/layoutbug/.

The problem seems to be with the 'position' attribute of the #menu div. If
changed from 'absolute' to 'relative', the page displays correctly. But with
'absolute', it just goes wrong (crammed menu bar, main content is not being
displayed, etc.).

I hope this helps a bit.
Screenshot of Firefox 1.0.1 correctly rendering the testcase
http://n.ethz.ch/student/awuest/testcases/layoutbug/.
Attachment #177151 - Attachment description: Screenshot of Firefox 1.0.1 correctly rendering the page. → Screenshot of Mozilla 1.8b22005031002 wrongly rendering the page.
Attachment #177151 - Attachment filename: Firefox-1.0.1.png → /afs/ethz.ch/users/a/awuest/infk/SunOS/.gnome-desktop/Mozilla-1.8b2-nightly2005031002.png
Attachment #177151 - Attachment filename: /afs/ethz.ch/users/a/awuest/infk/SunOS/.gnome-desktop/Mozilla-1.8b2-nightly2005031002.png → Mozilla-1.8b2-nightly2005031002.png
Screenshot of Firefox 1.0.1 correctly rendering the testcase
http://n.ethz.ch/student/awuest/testcases/layoutbug/.
Comment on attachment 177151 [details]
Screenshot of Mozilla 1.8b22005031002 wrongly rendering the page.

Screenshot of Mozilla 1.8b22005031002 wrongly rendering the testcase
http://n.ethz.ch/student/awuest/testcases/layoutbug/.

(sorry for all those changes, but I've mixed up the files)
Screenshot of Firefox 1.0.1 correctly rendering the testcase
http://n.ethz.ch/student/awuest/testcases/layoutbug/.

(Sorry, NOW I've got the screenshot right. Must. Why's there no preview
anyway...)
Attachment #177152 - Attachment is obsolete: true
Andreas: the problem is that the menu div has 0 width.  It has 100% width and
its parent (abs_container) has overflow:hidden, which makes this a...

dupe of "Width:100% broken if parent block element has overflow:hidden"

*** This bug has been marked as a duplicate of 282754 ***
Status: UNCONFIRMED → RESOLVED
Closed: 19 years ago
Resolution: --- → DUPLICATE
(In reply to comment #10)

> Andreas: the problem is that the menu div has 0 width.  It has 100% width and
> its parent (abs_container) has overflow:hidden, which makes this a...
> 
> dupe of "Width:100% broken if parent block element has overflow:hidden"
> 
> *** This bug has been marked as a duplicate of 282754 ***

Ah, ok, thanks a lot then! Sorry for the dupe!!
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: