You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by bu...@apache.org on 2008/06/06 22:21:26 UTC

DO NOT REPLY [Bug 45152] New: Solid bottom border not rendered correctly since 0.94

https://issues.apache.org/bugzilla/show_bug.cgi?id=45152

           Summary: Solid bottom border not rendered correctly since 0.94
           Product: Fop
           Version: 1.0dev
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: normal
          Priority: P2
         Component: pdf
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: anathaniel@apache.org


In 0.93, the solid borders of table cells were still rendered okay in PDF
output (except for the tiny gaps where the lines join).

In 0.94, there are squares of half the line width missing in the lower left and
right corners of the row.

In 0.95beta, in addition to the corner problem, also the bottom line is drawn
only with half width if stack above a row with different col-spans.

The problem is still in trunk (r663939).

Attached are a sample stylesheet and the results for the tagged versions,


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0.94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152

Glenn Adams <gl...@skynav.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |CLOSED

--- Comment #11 from Glenn Adams <gl...@skynav.com> 2012-04-01 06:43:31 UTC ---
batch transition pre-FOP1.0 resolved+fixed bugs to closed+fixed

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #8 from Alfred Nathaniel <an...@apache.org>  2008-06-08 15:48:24 PST ---
Created an attachment (id=22096)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22096)
FO input for other testcase

Example with one table of

    1.) bordered
    2.) unbordered

and another table of

    1.) unbordered
    2.) bordered
    3.) unbordered

With 0.95beta, the bottom-border of the cells in the bordered row are rendered
differently.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152


Alfred Nathaniel <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #22088|text/plain                  |application/fo
          mime type|                            |




-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #4 from Alfred Nathaniel <an...@apache.org>  2008-06-06 13:28:22 PST ---
Created an attachment (id=22091)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22091)
PDF rendered with fop-0.95beta


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152


Vincent Hennebert <vi...@anyware-tech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID




--- Comment #6 from Vincent Hennebert <vi...@anyware-tech.com>  2008-06-07 02:33:17 PST ---
Hi,

Indeed this is due to the implementation of the collapsing border model (the
same as in CSS, if that gives you any hint), that's available since version
0.94 of FOP. When the border-collapse property is not specified on fo:table,
its default value is "collapse". FOP 0.93 was actually not compliant on this
regard since it was (silently) switching to the separate border model.

The behaviours of FOP 0.94 and 0.95 are normal and to be expected with the
collapsing model. If this is not what you want then you just have to specify
border-collapse="separate" on the table, like Andreas said. Both models allow
to achieve quite different effects, so the one that suits you will depend on
your needs.

HTH,
Vincent


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152


Alfred Nathaniel <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




--- Comment #7 from Alfred Nathaniel <an...@apache.org>  2008-06-08 15:44:09 PST ---
Thanks for the hint.  border-collapse="separate" does indeed restore the 0.93
behaviour and produces the effect I actually need to produce (drawing a solid
line with constant thickness between table rows with different col-span cells.

I am not a CSS-lawyer that I don't want to judge whether the missing corners
starting in 0.94 are to be expected.

But I don't think that the 0.95beta behaviour to make the bottom-border width
depend on the col-spans of the next row is normal.  Furthermore, it depends
whether the bordered row is the first one or not.

I am attaching another testcase to illustrate that.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #5 from Andreas L. Delmelle <ad...@apache.org>  2008-06-06 13:39:16 PST ---

No clue yet what the fix is, but it has to do with the implementation for
border-collapse="collapse", which was added as of 0.94.

For now, I can already offer a workaround. If you specify explicit
border-collapse="separate" on the fo:table, then the behavior will at least be
identical to what 0.93 produced.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #2 from Alfred Nathaniel <an...@apache.org>  2008-06-06 13:27:33 PST ---
Created an attachment (id=22089)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22089)
PDF rendered with fop-0.93


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #1 from Alfred Nathaniel <an...@apache.org>  2008-06-06 13:26:51 PST ---
Created an attachment (id=22088)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22088)
FO input to demonstrate the problem


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #3 from Alfred Nathaniel <an...@apache.org>  2008-06-06 13:27:59 PST ---
Created an attachment (id=22090)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22090)
PDF rendered with fop-0.94


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152


Vincent Hennebert <vi...@anyware-tech.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED




--- Comment #10 from Vincent Hennebert <vi...@anyware-tech.com>  2008-06-09 03:23:37 PST ---
Hi,

(In reply to comment #7)
> Thanks for the hint.  border-collapse="separate" does indeed restore the 0.93
> behaviour and produces the effect I actually need to produce (drawing a solid
> line with constant thickness between table rows with different col-span cells.
> 
> I am not a CSS-lawyer that I don't want to judge whether the missing corners
> starting in 0.94 are to be expected.

Actually this is a corner case that's not well described by the CSS spec. Web
browsers seem to fill the corners while you can find both behaviours among
XSL-FO implementations. I think most of the people who are using this model
specify the same borders on all the cells of the table. Then the issue doesn't
even show up.


> But I don't think that the 0.95beta behaviour to make the bottom-border width
> depend on the col-spans of the next row is normal.  Furthermore, it depends
> whether the bordered row is the first one or not.

Right, there's a bug in 0.95beta that was fixed in rev. 653537:
http://svn.apache.org/viewvc?view=rev&revision=653537
The fix will be available with the final version of FOP 0.95, that will be
released soon. Thanks for the testcase, though.

Vincent


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

DO NOT REPLY [Bug 45152] Solid bottom border not rendered correctly since 0 .94

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45152





--- Comment #9 from Alfred Nathaniel <an...@apache.org>  2008-06-08 15:49:04 PST ---
Created an attachment (id=22097)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22097)
PDF output of 0.95beta


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.