Subject: XSL FO question: Border/Padding and Indents From: MURAKAMI Shinyu <murakami@xxxxxxxxxx> Date: Tue, 15 Feb 2000 01:52:22 +0900 |
Hello, I'm learning XSL FO and going to make an FO formatter, I have some question about XSL FO specification. WD XSL(2000-01-12) 5.3.3 Start-indent and End-indent <quote> End-indent = margin-corresponding + padding-end + border-end-width Start-indent = margin-corresponding + padding-start + border-start-width If an absolute "margin" property is not explicity specified, these equations determine a computed value for the corresponding "margin" property given values for the three traits corresponding-indent, padding-corresponding and border-corresponding width. </quote> I understand, it means: computed value for margin-corresponding = start-indent - border-start-width - padding-start e.g. <fo:block border-start="5pt solid" padding-start="5pt" start-indent="10pt"> equals to <fo:block border-start="5pt solid" padding-start="5pt" margin-left="0pt"> (when writing-mode="lr-tb", parent area's start-indent=0) Ok, but when both start-indent and margin-left are not specified, how to resolve the computed value of start-indent? <fo:block border-start="5pt solid" padding-start="5pt"> equals to which? a. <fo:block ... start-indent="10pt"> (because margin-left is default value 0) or b. <fo:block ... start-indent="0pt"> (and margin-left="-10pt" !!) (because start-indent property is inherited) if b. is correct, it's so different from CSS... And, 7.9.8 "start-indent" <quote> ... specifies the distance from the start-edge of the content-rectangle of the containing reference-area to the start-edge of the allocation-rectangle of that block-area. </quote> I think this "the allocation-rectangle of that block-area" is mistake, the correct is "content-rectangle", no? Thanks, -- MURAKAMI Shinyu murakami@xxxxxxxxxx http://www.nadita.com/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: JavaScript, Duane Nickull | Thread | XSL FO question: white-space-treatm, MURAKAMI Shinyu |
RE: JavaScript, Emery, Ric | Date | XSL FO question: white-space-treatm, MURAKAMI Shinyu |
Month |