W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2003

Re: start-edge border and padding... where'd they go?

From: Mark Lundquist <ml@wrinkledog.com>
Date: Thu, 26 Jun 2003 17:02:49 -0700
To: www-xsl-fo@w3.org
Message-Id: <B0C8C890-A832-11D7-9476-000A95908E0E@wrinkledog.com>

Update:

1) I tried adding a compound padding-start property to the 
block-container, with .conditionality="retain".  Thought that might 
have something to do with it.  This made absolutely zero difference.

2) I tried forcing a "margin=0pt" on the inner block.  Wonder of 
wonders, the left edge of the nested block's border (blue) appeared.  
That was the only difference, though.

So then, I'm still foundering in a sea of cluelessness.

On Thursday, June 26, 2003, at 04:29 PM, Mark Lundquist wrote:

>
> All right, I'm trying to learn XSL-FO, and I have this oh-so-very 
> simple test document:
>
> <?xml version="1.0"?>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
>     <fo:layout-master-set>
>         <fo:simple-page-master
>                     master-name="basic"
>                     page-width="8.5in"
>                     page-height="11in"
>                 >
>             <fo:region-body />
>         </fo:simple-page-master>
>         <fo:page-sequence-master
>                     master-name="single"
>                 >
>             <fo:single-page-master-reference
>                     master-reference="basic"
>                 />
>         </fo:page-sequence-master>
>     </fo:layout-master-set>
>
>     <fo:page-sequence
>                 master-reference="single"
>             >
>         <fo:flow flow-name="xsl-region-body">
>             <!-- create a reference area -->
>             <fo:block-container
>                     width="7.5in"
>                     height="9.5in"
>                     padding="0.5in"
>                     border-style="solid"
>                     border-color="green"
>                 >
>                 <fo:block
>                         border-style="solid"
>                         border-color="blue"
>                     >
>                     Foo Bar!
>                 </fo:block>
>             </fo:block-container>
>         </fo:flow>
>     </fo:page-sequence>
>
> </fo:root>
>
> Now then... here's what I see in the rendered document:
>
> 	Green border (outer block-container):
> 		- left edge not visible (why not?)
> 		- top edge runs along top of page from left edge of page,  length is 
> 8"
> 		  (I assume: 7.5" content-rectangle width + 0.5" right padding)
> 		- right edge length is 10.5" (I assume: 9.5" content-rectangle height
> 		  + 0.5" top padding + 0.5" bottom padding)
> 		- bottom edge completes the border rectangle
>
> 	Blue border (inner block):
> 		- left edge not visible (why not?)
> 		- top edge starts at left edge of page, abuts that of the green 
> border above;
> 		  length is 7.5" (as expected)
> 		- right edge length determined by line-height (or whatever)
> 		- bottom edge completes the border rectangle
>
> 	Text ("Foo Bar!") is aligned to the left edge of the page.
>
> Questions:
>
> 1) Where in the world did the left padding go?
> 2) And what happened to the left borders?
>
> Question (1) is what I really care about... question (2) is a 
> curiosity for me at this point, although I suspect the answers are 
> related.
>
> What do I have to do to get padding to "work right" ? :-)
>
> Any help greatly and forever appreciated :-)
> -- Mark Lundquist
>
>
Received on Thursday, 26 June 2003 20:02:46 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 3 October 2007 16:06:11 GMT