You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Florent Georges <da...@yahoo.fr> on 2006/05/08 14:54:41 UTC

table-body, border-width, and "inherit"

  Hi

  Doesn't the following have to result in a table with a
border of 1pt, and two rules of 0.25pt?

    <fo:table border-style="solid" border-width="1pt">
      <fo:table-column column-width="100pt"/>
      <fo:table-body border-width="0.25pt">
        <fo:table-row>
          <fo:table-cell border-bottom-style="solid">
            <fo:block>
              <fo:inline>Line 1</fo:inline>
            </fo:block>
          </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell border-bottom-style="solid">
            <fo:block>
              <fo:inline>Line 2</fo:inline>
            </fo:block>
          </fo:table-cell>
        </fo:table-row>
        <fo:table-row>
          <fo:table-cell>
            <fo:block>
              <fo:inline>Line 3</fo:inline>
            </fo:block>
          </fo:table-cell>
        </fo:table-row>
      </fo:table-body>
    </fo:table>

  Actually, the two rules are of 1pt.  Is it expected?  I
thought that by "inherit", the value was the one of the
nearest ancestor with that value (well, the value in the
parent, itself maybe "inherit").

  So is the above result right or a bug?

  PS: I use FOP 0.92beta.

  Regards,

--drkm
























	

	
		
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: table-body, border-width, and "inherit"

Posted by Florent Georges <da...@yahoo.fr>.
Jeremias Maerki wrote:

> >   So is the above result right or a bug?

> It's correct.

  Ok, I misunderstood completly here, sorry.  Thanks for your
comprehensive explanation.

  Regards,

--drkm

























	

	
		
___________________________________________________________________________ 
Faites de Yahoo! votre page d'accueil sur le web pour retrouver directement vos services préférés : vérifiez vos nouveaux mails, lancez vos recherches et suivez l'actualité en temps réel. 
Rendez-vous sur http://fr.yahoo.com/set

---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org


Re: table-body, border-width, and "inherit"

Posted by Jeremias Maerki <de...@jeremias-maerki.ch>.
On 08.05.2006 14:54:41 Florent Georges wrote:
>   Hi
> 
>   Doesn't the following have to result in a table with a
> border of 1pt, and two rules of 0.25pt?

No.

>     <fo:table border-style="solid" border-width="1pt">
>       <fo:table-column column-width="100pt"/>
>       <fo:table-body border-width="0.25pt">
>         <fo:table-row>
>           <fo:table-cell border-bottom-style="solid">
>             <fo:block>
>               <fo:inline>Line 1</fo:inline>
>             </fo:block>
>           </fo:table-cell>
>         </fo:table-row>
>         <fo:table-row>
>           <fo:table-cell border-bottom-style="solid">
>             <fo:block>
>               <fo:inline>Line 2</fo:inline>
>             </fo:block>
>           </fo:table-cell>
>         </fo:table-row>
>         <fo:table-row>
>           <fo:table-cell>
>             <fo:block>
>               <fo:inline>Line 3</fo:inline>
>             </fo:block>
>           </fo:table-cell>
>         </fo:table-row>
>       </fo:table-body>
>     </fo:table>
> 
>   Actually, the two rules are of 1pt.  Is it expected? 

Yes.

>  I
> thought that by "inherit", the value was the one of the
> nearest ancestor with that value (well, the value in the
> parent, itself maybe "inherit").

The border properties are not inherited properties and you didn't
specify "inherit" as the property value anywhere. The default
border-width is "medium" which results in a 1pt border in FOP. The
border-width on the table-body has no effect, especially since in FOP
0.92beta the border-collapse property is forced to the value "separate"
because the default collapsing border model isn't supported, yet. So, as
soon as you set the border-style you simply activate the default
border-width of "medium" (=1pt).

>   So is the above result right or a bug?

It's correct.

>   PS: I use FOP 0.92beta.

Jeremias Maerki


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-users-help@xmlgraphics.apache.org