Bug 4492 - text-decoration="underline" on fo:block ignored
Summary: text-decoration="underline" on fo:block ignored
Status: CLOSED FIXED
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: 0.15
Hardware: Sun Solaris
: P3 minor
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-10-29 07:56 UTC by Phil Endecott
Modified: 2012-04-01 06:42 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Phil Endecott 2001-10-29 07:56:48 UTC
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!).
Comment 1 Phil Endecott 2001-11-28 05:04:09 UTC
Christian Geisert <Christian.Geisert@isu-gmbh.de> sent this to fop-dev:

> But to underline one must use fo:inline, right??
At the moment: yes!
I have started coding support for underline in blocks some time ago, but
it's not finished yet

Christian, can you update this bug when you make some progress?  Thanks!
Comment 2 Christian Geisert 2002-02-08 18:29:43 UTC
Done, see 0.20.3RC
Comment 3 Glenn Adams 2012-04-01 06:42:50 UTC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed