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!).
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!
Done, see 0.20.3RC
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed