[xep-support] Border collapse precedence

Alexander Peshkov peshkov at renderx.com
Tue Feb 8 07:31:27 PST 2005


Hello Chris,

Border collapsing is governed by "border-collapse" property. The
default value of this property is "collapse". According to XSL FO
spec, border precedence used for conflict resolution only in
"collapse-with-precedence" mode. That is if you add
border-collapse="collapse-with-precedence" to fo:table element you 
will get desired visual effect.

Best regards,
Alexander Peshkov                             mailto:peshkov at renderx.com
RenderX

CB> The border-*-precedence properties dont appear to be conformant to the spec. 
CB> Section 7.26 says that fo:table has a default precedence of 6, whilst 
CB> fo:table-cell has a default precedence of 5. However, when rendering the 
CB> following FO snippet, only orange borders are visible. Blue borders should 
CB> appear on the outside, if the precedence is being obeyed correctly.

CB> Chris

CB> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
CB> <fo:layout-master-set>
CB>         <fo:simple-page-master master-name="a4">
CB>                 <fo:region-body/>
CB>         </fo:simple-page-master>
CB> </fo:layout-master-set>
CB> <fo:page-sequence master-reference="a4">
CB>         <fo:flow flow-name="xsl-region-body">
CB>                 <fo:block>Below is a 3x3 table</fo:block>
CB>                 <fo:table border-style="solid" border-color="blue" border-width="2pt">
CB>                         <fo:table-column column-width="33%"/>
CB>                         <fo:table-column column-width="33%"/>
CB>                         <fo:table-column column-width="33%"/>
CB>                         <fo:table-body>
CB>                                 <fo:table-row>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-1</fo:block>
CB>                                         </fo:table-cell>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-2</fo:block>
CB>                                         </fo:table-cell>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-3</fo:block>
CB>                                         </fo:table-cell>
CB>                                 </fo:table-row>
CB>                                 <fo:table-row>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-1</fo:block>
CB>                                         </fo:table-cell>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-2</fo:block>
CB>                                         </fo:table-cell>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-3</fo:block>
CB>                                         </fo:table-cell>
CB>                                 </fo:table-row>
CB>                                 <fo:table-row>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-1</fo:block>
CB>                                         </fo:table-cell>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-2</fo:block>
CB>                                         </fo:table-cell>
CB>                                         <fo:table-cell border-style="solid" border-color="orange" border-width="5pt">
CB>                                                 <fo:block>1-3</fo:block>
CB>                                         </fo:table-cell>
CB>                                 </fo:table-row>
CB>                         </fo:table-body>
CB>                 </fo:table>
CB>         </fo:flow>
CB> </fo:page-sequence>
CB> </fo:root>





CB> -------------------
CB> (*) To unsubscribe, send a message with words 'unsubscribe xep-support'
CB> in the body of the message to majordomo at renderx.com from the address
CB> you are subscribed from.
CB> (*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/tos.html


-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at 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



More information about the Xep-support mailing list