On Wed, 7 Sep 2005 03:48 pm, Finn Bock wrote:
> [Manuel]
>
> > Is the following legal:?
> >
> > <fo:inline
> >   border="solid 1pt red"
> >   border-start-width.conditionality="retain"
> >   border-end-width.conditionality="retain"
> >   padding="1pt"
> >   padding-start.conditionality="retain"
> >   padding-end.conditionality="retain">
> >
> > What seems to happen is that for borders it works fine, that is I
> > get 4 solid red 1pt borders with the start and end borders having a
> > conditionality of "retain".
>
> Oh, it works exactly the same for borders, you are just seeing the
> default "medium" (=1pt) value for "border-start-with.length" and the
> default "0pt" for "padding-start.length".
>
> > However for padding I get padding before and after with length
> > 1pt but start and end padding have a length of 0pt(!) although
> > their conditionality is correctly set to "retain".
> >
> > If the above is legal than something is wrong in the property
> > subsystem with respect to shorthand length and component specs. If
> > the above is illegal than I am just lucky that it works for
> > borders.
>
> The effect seen occurs because we consider "padding-start" to be
> explicitly set by setting "padding-start.conditionality" and then the
> shorthand is ignored.
>
>  From [5.3.1]
>
> """
> If the corresponding relative property is specified on the formatting
> object and the absolute property only specified by the expansion of a
> shorthand, then the computed value of the absolute property is set to
> the computed value of the corresponding relative property.
> """
>
> I don't know if that is the correct interpretation.
>
Finn,

thank you - forgot that the shorthands set the absolute and not the 
relative properties. So this should work?:

<fo:inline
   border="solid 1pt red"
   border-left-width.conditionality="retain"
   border-right-width.conditionality="retain"
   padding="1pt"
   padding-left.conditionality="retain"
   padding-right.conditionality="retain">

> regards,
> finn

Manuel

Reply via email to