Closed Bug 214273 Opened 22 years ago Closed 21 years ago

erstebank.hu - all page content hidden by bad CSS

Categories

(Tech Evangelism Graveyard :: Other, defect)

x86
All
defect
Not set
trivial

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: ziegler, Unassigned)

References

()

Details

(Keywords: ecommerce, testcase)

Attachments

(5 files)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; hu-HU; rv:1.4; MultiZilla v1.4.0.4A) Gecko/20030624 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; hu-HU; rv:1.4; MultiZilla v1.4.0.4A) Gecko/20030624 The abovmentioned URL (and many other on the same site) fails to render completely, if certain styles contains an OWERFLOW:hidden style. I will attach a test case to prove this Reproducible: Always Steps to Reproduce: 1. View the URL :-) You can view only the header-bar of the page 2. Save the page as a complete webpage to local disk (see attachment) 3. Go to the saved stylesheet content_style.css. Find the style declaration for "#commoncontainerdiv". Comment out the "OVERFLOW: hidden;" style. 4. open that page from the local disk, now using the modified .css. You can see, that the main content renders now (altough the layout is ugly). Actual Results: The missing content has appeared Expected Results: I am not a CSS expert at all, but I guess that it should have rendered the main content visible w/o the CSS hack. I also guess, that the web-author was lazy, and left the clipping of overflowing items to the browser. :-( THE PAGE RENDERS PROPERLY ON NETSCAPE =7.0!!!
Please see the file "Erste Bank_elemei\content_Style.css". Look for #commoncontainerdiv declration (bears also my inserted comment /*mozbug#1*/). If you comment out the "OVERFLOW: hidden;" declaration, then Mozilla renders the main content of the page. If it is not comment out, then just only the heading figure of the page.
Maybe I should add regression keyword, since Netscape 7.0 renders the page properly?
Duplicate of bug 211764 or of bug 197684 ?
As an answer to comment #3, I don't think mine is a duplicate, at least the symptoms are different. Reason: a.f.a.i.k, bug 211764 is about a hidden object that is not rendered (which is ok., since it is hidden), but still "occupies screen area" As for bug 197684 it might be, but I am not convinced. The situation seems to be similar: an owerflowed object in table, but bug 197684 about rowspan problems, but in my test case it seems there is no rowspan, or colspan declratation at all... Being a telecom test engineer, I know that my test case definitely needs some "distillation", since a bunch of files are far from a minimal, but sufficient test data, but unfortunatley I am neither a HTML/CSS expert, nor I have enough spare time for hunting down the problem, I have to admit. I am just a humble Mozilla fan, who cannot use his brand new(?) internetbanking feature of his bank... :-(
The problem is that Floated boxes are not considered in the height of block boxes. http://www.w3.org/TR/REC-CSS2/visudet.html#q17 So the height of #maincontainer is 0px because it only contains floated boxes. #commoncontainerdiv is not tall enough to display #maincontainer so it is considered overflow and is not displayed b/c of your css.
Being a non-technical (i.e., non-(HTML/CSS-technical)) person for me the comment #5 is not clear. It seems the Jesiah S suggests that is not a bug, but a "feature" that follows from the CSS2 specs. If so, then I think it is a stupid rule that makes possible for a container that contains only floating objects to render in 0px heigth. The page displays "properly" in Netscape 7.0, that is in Mozilla 0.9x, I guess. The page also displays "properly" in MSIE 6.0. That two browsers makes >90% of the currently used browsers. For me, this latter means it SHOULD display "properly" in Mozilla as well.
Attached file Testcase
Mozilla is doing the right thing, see comment 5. -> TE
Assignee: roc+moz → other
Severity: normal → major
Component: Layout: View Rendering → Other
Keywords: testcase
OS: Windows 2000 → All
Product: Browser → Tech Evangelism
QA Contact: ian → other
Version: Trunk → unspecified
Attached file A suggested fix
Adding <BR clear="all"> after the floats forces the parent to have a height that wraps the floats.
Confirming new. Reporter, I would suggesting writing the site owner and asking them to fix the page. You could refer them to this bug's URL as a guideline for them.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Mozilla 1.4 fails to render the main content of the page, if the CSS contains an OWERFLOW:hidden declaration → erstebank.hu - all page content hidden by bad CSS
I will try...
The URL seems to have been fixed now, right?
Here is the screenshot of the URL rendered by mozilla, after the workaround suggested by comment #9. The situation is improved significantly (the content is finally shown), HOWEVER, the background repeated image is still not shown.
Here is the page rendered by MSIE. NOTICE the light-blue color-gradient background that fill the entire maincontainer div block that encloses the middle (main) content. Also NOTICE the difference of "marginwidth", that is, the wider vertical space at the bottom of the main container
Sorry, bad English of mine in comment #14, not "wider vertical space at the bottom of the main container", but "taller vertical space at the bottom of the main container"
The missing vertical space can be fixed by changing the content: <p></p> </div> <!-- End Tag "Home_Div" --> to: <p><br clear="all"></p> </div> <!-- End Tag "Home_Div" -->
The only difference in backgrounds I can see is in the right column where IE displays a light-blue background color, whereas Mozilla have an almost white bg color. AFAICT, Mozilla is correct due to this rule in "homepage_style.css": #rechtercontainer a.xmodultitellink: { background-color:#FCFDFE; color: #005188 }
I don't know if trivial matters like these are worth Evangelizing though...
Severity: major → trivial
Keywords: ecommerce
Site looks fine to me... -> WORKSFORME
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
The diffrence is still there, not in the rigth column (right menu pane) but in the middle column (main content pane). MSIE renders its background with light-blue, like the righmost pane. It makes the following situation: MSIE: renders from left to right Main menu pane dark blue, a narrow lighter blue separator, and then both the main pane and the right pane have a more-lighter blue backgroudn Mozilla renders from left to right Main menu pane dark blue, a narrow lighter blue separator, and then main pane with a white(!) background and then the right pane with a more-lighter blue background It is indeed small, "aesthetic" difference, and the page is indeed usable, but nonetheless it could make the page unusable if the background would convey any semantic meaning
Status: RESOLVED → REOPENED
Resolution: WORKSFORME → ---
I think the remaining problem might have actually been a Mozilla bug when parsing invalid selectors, bug 265542. Note the trailing ':' in the rule in comment 17. The URL is 404 so I can't really tell. Gábor, please verify with a build dated 2004-11-27 or later. http://ftp.mozilla.org/pub/mozilla.org/mozilla/nightly/latest/ -> WORKSFORME
Status: REOPENED → RESOLVED
Closed: 22 years ago21 years ago
Resolution: --- → WORKSFORME
Well, site seems to be heavily redesigned, works even with old mozilla. (The developers were extremely responsive on my first bugreport, it might be the case that they first-handedly tested the new site-design with mozilla.)
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: