FOP only evaluates background-position-horizontal if background-repeat
is "repeat-y" or "no-repeat", and background-position-vertical if
background-repeat is "repeat-x" or "no-repeat". Whether this behaviour
is conformant or not is possibly a different question as I think there
is some room for interpretation in the spec. But the properties are
called "background-position-*", not "background-shift-*". And adding to
that the description of percent values reinforces my belief that the
current implementation is correct. But of course, we could be wrong.
However, there's a work-around for what you want to do:
You can place a fixed positioned block-container in the region-before.
<fo:static-content flow-name="xsl-region-before">
<fo:block-container absolute-position="fixed" left="0in" top="0in"
width="11in" height="8.5in"
background-image="images/someimage.png">
<fo:block/>
</fo:block-container>
</fo:static-content>
Jeremias Maerki
On 24.11.2007 00:29:02 Jerzy Jalocha N wrote:
> Hi, I'm new to this list, so I'd like to say hello to everybody here, first.
>
> I am confused about the use of negative <length> values with the
> 'background-position-horizontal' and 'background-position-vertical'
> attributes. In my current use-case, FOP just ignores these negative
> values. I am not quite sure if this behavior is correct or this is a
> bug.
>
> The XSL 1.1 (http://www.w3.org/TR/xsl/#background-position-horizontal"
> recommendation does not mention negative values. But it declares this
> as "A Property Derived from a CSS2 Property".
>
> The CSS2 specification
> (http://www.w3.org/TR/REC-CSS2/colors.html#background-properties) says
> for the 'background-position' property that "Negative positions are
> allowed", without any further clarifications.
>
> Thus, I am not quite sure, how this translates to XSL-FO.
>
> I am running the following system:
> * fop-0.94-bin-jdk1.4.tar.gz
>
> * Sun java version 1.6.0_03
> * Ubuntu 7.10 Gutsy Gibbon
> * linux 2.6.22-14-generic (i686)
>
> I am using the properties in the following context:
>
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="PageMaster"
> page-height="8.5in" page-width="11in"
> margin-top="0" margin-left="0" margin-right="0" margin-bottom="0">
> <fo:region-body column-count="2" column-gap="20mm"
> border-style="none" border-width="thin"
> margin-top="16mm" margin-left="16mm"
> margin-right="16mm" margin-bottom="16mm"
> background-image="url('layout.svg')"
> background-position-horizontal="-16mm"
> background-position-vertical="-16mm" />
> [etc]
>
> BTW: What I am trying to do, is to add some page-decorations that are
> larger than my region-body. Sadly, 'simple-page-master' does not
> accept background properties.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]