[xep-support] XEP 3.2: error in handling value "auto" for margin-left and margin-right

From: Werner Donné (werner.donne@re.be)
Date: Sun Feb 02 2003 - 11:59:14 PST

  • Next message: Werner Donné: "Re: [xep-support] XEP 3.2: strange page-master message"

    Hi,

    I think the example below reveals an error in the handling of margin-left and
    margin-right. According to section 10.3.3 of the CSS2 specification the "auto"
    values should be treated as "0", because the width is also set to "auto" (didn't
    have to be defined explicitly). Both blocks should therefore be treated equally,
    but they aren't. It seems to me that for the first block, space-start and space-end
    semantics were applied.

    <?xml version="1.0" encoding="UTF-8"?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:css="http://www.w3.org/1998/CSS" xmlns:xh="http://www.w3.org/1999/xhtml" country="GB" font-family="serif" font-size="11pt" hyphenate="true" language="en">
        <fo:layout-master-set>
           <fo:simple-page-master master-name="any" writing-mode="lr-tb" page-height="297mm" page-width="210mm" margin-top="25.0mm" margin-bottom="25.0mm" margin-left="25.0mm" margin-right="25.0mm">
              <fo:region-body column-count="1" margin-bottom="0mm" margin-left="0mm" margin-right="0mm" margin-top="0mm"/>
           </fo:simple-page-master>
           <fo:page-sequence-master master-name="unnamed-first">
              <fo:repeatable-page-master-alternatives>
                 <fo:conditional-page-master-reference page-position="any" master-reference="any"/>
                 <fo:conditional-page-master-reference blank-or-not-blank="blank" page-position="any" master-reference="any"/>
              </fo:repeatable-page-master-alternatives>
           </fo:page-sequence-master>
           <fo:page-sequence-master master-name="unnamed">
              <fo:repeatable-page-master-alternatives>
                 <fo:conditional-page-master-reference page-position="any" master-reference="any"/>
                 <fo:conditional-page-master-reference blank-or-not-blank="blank" page-position="any" master-reference="any"/>
              </fo:repeatable-page-master-alternatives>
           </fo:page-sequence-master>
        </fo:layout-master-set>
        <fo:page-sequence format="1" master-reference="unnamed-first">
           <fo:flow flow-name="xsl-region-body">
              <fo:block unicode-bidi="embed" font-family="serif" line-height="1.33" padding="8.0px">
                 <fo:block unicode-bidi="embed" width="auto" margin-right="auto" margin-left="auto" space-after="0.83em" space-before="0.83em" space-before.conditionality="discard" space-after.conditionality="discard" text-align="justify" border="5mm solid">Example
    with margin-left and margin-right set to "auto".</fo:block>
                 <fo:block unicode-bidi="embed" width="auto" margin-right="0" margin-left="0" space-after="0.83em" space-before="0.83em" space-before.conditionality="discard" space-after.conditionality="discard" text-align="justify" border="5mm solid">Example
    with margin-left and margin-right set to "0".</fo:block>
              </fo:block>
           </fo:flow>
        </fo:page-sequence>
    </fo:root>

    Regards,

    Werner.

    -- 
    Werner Donné  --  Re BVBA
    Engelbeekstraat 8
    B-3300 Tienen
    tel: (+32) 486 425803	e-mail: werner.donne@re.be
    -------------------
    (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
    in the body of the message to majordomo@renderx.com from the address
    you are subscribed from.
    (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html
    


    This archive was generated by hypermail 2.1.5 : Sun Feb 02 2003 - 11:52:20 PST