Comment 0 for bug 515725

Revision history for this message
In , Cprevoe (cprevoe) wrote :

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.13) Gecko/2009080315 Ubuntu/9.04 (jaunty) Firefox/3.0.13

XSLT transformation with a page zoom incorrectly determines the visual page area, either hiding scrollbars or not using the entire display area.

Reproducible: Always

Steps to Reproduce:
1.Take any xslt transformation converting XML to HTML (best seen when result has a div with a border)
2.Hold CTRL and use mouse wheel to do page zoom
3.after zooming, hit CTRL+R to refresh the page
4. Resizing (even a pixel) fixes things
Actual Results:
If zooming in, scrollbars are off the screen.
If zooming out, scrollbars box out a portion of display area and the rest tends to be a garbage image.

Expected Results:
I would expect the scrollable area to be the size of the display area, and refreshing the page to result in the same thing (when DOM not modified) as when zoomed.

<!-- XML -->
<?xml-stylesheet type="text/xsl" href="arg.xsl" ?>
<example><of>The resizing bug</of></example>

<!-- XSL -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
    <html>
      <head><style> body, div { border: 1px solid black; } </style></head>
      <body><xsl:for-each select="example/of"><div><xsl:value-of select="text()" /></div></xsl:for-each></body>
    </html>
  </xsl:template>
</xsl:stylesheet>