DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11783>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=11783

<fo:block background-color="x">text</fo:block> generates <svg:rect> with negative 
height

           Summary: <fo:block background-color="x">text</fo:block> generates
                    <svg:rect> with negative height
           Product: Fop
           Version: 0.20.4
          Platform: PC
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: svg
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This bug seems to have been introduced in 0.20.4 (0.20.3 worked fine).
Here's the test fo document I render into svg using fop 0.20.4:
--------------------------------------------------------------
<?xml version="1.0"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master master-name="default" page-height="11in" page-
width="8.5in">
      <fo:region-body margin-top="0.5in" margin-bottom="0.5in"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-reference="default">
    <fo:flow flow-name="xsl-region-body">
      <fo:block background-color="#C0C0C0">text2</fo:block>
    </fo:flow>
  </fo:page-sequence>
</fo:root>
--------------------------------------------------------------

The resulting svg file contains this:
        <rect width="540.0" x="36.0" height="-15.4" y="50.400024"
              style="stroke:rgb(192,192,192);fill:rgb(192,192,192)"/>
        <text x="36.0" y="61.599976">
            text2
        </text>
--------------------------
<rect> has negative height.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to