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

text-decoration="underline" on fo:block ignored

           Summary: text-decoration="underline" on fo:block ignored
           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 text-decoration="underline" on an fo:block it is ignored; if I set it
on an inline it works.

The XSL 1.0 spec says text-decoration applies to all elements.  It also says
"If the property is specified for a block-level element, it affects all
inline-level descendants of the element".  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>
        <fo:inline text-decoration="underline">
          This will be underlined because the text-decoration is set on the
          inline element.
        </fo:inline>
      </fo:block>

      <fo:block text-decoration="underline">
        This will not be underlined even though a text-decoration is set on
        the block element.  It also fails when text-decoration is set on
        basic-link elements.
      </fo:block>

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

This is with version 0.20.2-RC (can someone update the list of versions in
Bugzilla - it only goes as far as 0.17!).

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

Reply via email to