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=4510>.
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=4510

background-color="blue" ignored on fo:inline

           Summary: background-color="blue" ignored on fo:inline
           Product: Fop
           Version: 0.15
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Minor
          Priority: Other
         Component: general
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


If I set background-color="blue" (or any other colour) on an fo:inline it is
ignored; if I set it on a block it works.

The XSL 1.0 spec says background-color applies to all elements. Am I missing
something, or is FOP getting it wrong?

(If I'm misunderstanding it, please explain why - thanks!)

Here's an example:

<?xml version="1.0" encoding="UTF-8"?>
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format";>
  <fo:layout-master-set>
    <fo:simple-page-master margin-right="25mm" margin-left="25mm"
                           margin-bottom="20mm" margin-top="15mm"
                           page-height="297mm" page-width="210mm"
                           master-name="a4">
      <fo:region-before extent="10mm"/>
      <fo:region-after extent="10mm"/>
      <fo:region-body margin-bottom="15mm" margin-top="15mm"/>
    </fo:simple-page-master>
  </fo:layout-master-set>
  <fo:page-sequence master-name="a4">
    <fo:flow flow-name="xsl-region-body">

      <fo:block background-color="blue">
        This will have a blue background because background-color is set on
        the block element.
      </fo:block>

      <fo:block>
        <fo:inline background-color="blue">
          This will not have a blue background even though background-color
          is set on the inline element.
        </fo:inline>
      </fo:block>

    </fo:flow>
  </fo:page-sequence>
</fo:root>

This is with version 0.20.2-RC.

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

Reply via email to