Bug 39138 - block border-left/right works only if margin-left/right="0" is set
Summary: block border-left/right works only if margin-left/right="0" is set
Status: CLOSED WORKSFORME
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: pdf (show other bugs)
Version: 0.91
Hardware: All other
: P3 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-29 07:07 UTC by Walter Bauer
Modified: 2012-04-01 13:47 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Walter Bauer 2006-03-29 07:07:30 UTC
<fo:block
        padding-top="5mm" padding-bottom="5mm" padding-left="5mm" padding-right="5mm"
        border-color="red" border-style="solid"  border-width="5mm">

outputs top/bottom borders, but not left/right borders. 

They appear if
        margin-top="0mm" margin-bottom="0mm" margin-left="0mm" margin-right="0mm"
are set as well
Comment 1 Jeremias Maerki 2006-03-29 21:28:49 UTC
I think the borders are only clipped in your case. In an example I've just done,
the border displayed nicely and as they should be. What's important to know is
that the border to the left and to the right is painted beyond/outside the
normal content area of the text. If you set margin-left="0mm" you trigger
certain rules that make the border appear inside the normal content area. These
rules can be found in chapter 5.3.2 in XSL 1.0.

If you want me to point out to you exactly why the border isn't shown in your
special case, please reopen the issue and attach a full FO file. Your snippet
doesn't show the reason why the border isn't painted.
Comment 2 Glenn Adams 2012-04-01 13:47:56 UTC
batch transition to closed remaining pre-FOP1.0 resolved bugs