Open Bug 448756 Opened 16 years ago Updated 2 years ago

No vertical scrollbar with XML/XSL rendered HTML content

Categories

(Core :: XSLT, defect)

defect

Tracking

()

People

(Reporter: Neo_In_Matrix, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

This page http://bbs.wowchina.com/wow/bbs_list.aspx?forum_id=8 uses XML and XSL to render HTML content. There are no vertical scrollbar in FF 3.01 and it seems that horizontal content exceeds page width but there is no horizontal scrollbar either.

Other browsers like IE7, Opera 9.51 and Safari 3.1.2 works fine for this page.

Reproducible: Always

Steps to Reproduce:
1.
2.
3.
Actual Results:  
No vertical scrollbar.
The page content should be just fit in page width, but FF crops some content.

Expected Results:  
There should be a vertical scrollbar since the content is more than one page and content should not be cropped horizontally.
Works for me, Firefox 3.0.2pre on Linux.

Can you reproduce the problem in Firefox Safe Mode?
(it temporarily disables add-ons and themes, this test will help us narrow
down the cause of the problem)
http://support.mozilla.com/en-US/kb/Safe+Mode
I tested the page in safe mode but still got same (wrong) content layout.

Note this is a Chinese website.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1

This works fine for me.
I can confirm this behavior in {Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5} running under fully-patched WinXP SP3 on an ASUS laptop, ATI Mobility Radeon X1600 graphics at 1280x768 resolution, 32-bit color.

The problem occurs only if the page is loaded when the FF window size is maximized, and if it involves an XSL transformation of XML into HTML.

It can be worked around by using the standard Windows "Restore Down" button to shrink (not minimize) the window size, and then re-maximizing; the right scroll bar magically appears in the re-maximized window (as well as in the temporarily reduced window). However, refreshing the page in the same window (if it is still maximized) destroys the scroll bar once again. Apparently some helpful code is exercised on window maximization that is not exercised on initial page load or refresh.

The page is scrollable using a mouse wheel, but the last several lines are cropped, and cannot be accessed visually without first exercising the window shrink/re-maximize procedure described above.

The problem is consistently repeatable. Inserting multiple line breaks <br /> at the end of the template XSL file mitigates the bottom-cropping aspect, but does not resolve the missing scrollbar issue.

The MIME type returned in the HTTP header by our server for both XML and XSL files is text/xml.

XML file displaying the problem:
http://academic.venturacollege.edu/mbowen/courses/2009haru/m04tips.xml

Companion XSL template (FYI only; will not render because it's just a stylesheet):
http://academic.venturacollege.edu/mbowen/courses/xsl/m_tips.xsl
Thanks Michael, I can reproduce the problem on Linux using these steps:
1. load http://academic.venturacollege.edu/mbowen/courses/2009haru/m04tips.xml
2. maximize the window
3. zoom until there is a vertical scrollbar
4. CTRL+SHIFT+Reload  ==> no vertical scrollbar
(normalize + maximize makes the scrollbar appear again)
Severity: major → normal
Status: UNCONFIRMED → NEW
Component: General → XSLT
Ever confirmed: true
OS: Windows XP → All
Product: Firefox → Core
QA Contact: general → xslt
Hardware: x86 → All
This may be a duplicate/related to 640390. 

If not, I have another page where something similar happens:
http://www.opengl.org/sdk/docs/man/xhtml/glActiveTexture.xml

My Platform is (K)Ubuntu 12.04 64-bit (Firefox 14.0.1)
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.