| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- $Id$ --> |
| <testcase> |
| <info> |
| <p> |
| This is a testcase for jira #2388: when a 2-row table with WM(rl-tb) is contained in a block |
| with WM(lr-tb), then content from both rows should, by default, use WM(rl-tb) from table. Prior |
| to fix, the first row was obtaining default WM(lr-tb) from the container block rather than table. |
| </p> |
| </info> |
| <fo> |
| <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> |
| <fo:layout-master-set> |
| <fo:simple-page-master margin="20mm" master-name="letterPage" page-width="210mm" page-height="297mm"> |
| <fo:region-body region-name="letterPageBody"/> |
| </fo:simple-page-master> |
| </fo:layout-master-set> |
| <fo:page-sequence master-reference="letterPage"> |
| <fo:flow flow-name="letterPageBody"> |
| <fo:block> |
| <fo:table writing-mode="rl-tb" table-layout="fixed" width="100%"> |
| <fo:table-column column-width="proportional-column-width(100)" column-number="1"/> |
| <fo:table-body> |
| <fo:table-row> |
| <fo:table-cell> |
| <fo:block font-family="Arial" font-size="12pt" font-weight="normal">يرحب بكم ستاندرد تشارترد بنك و يتطلع لتقديم خدمات الحسابات المصرفية لكم</fo:block> |
| </fo:table-cell> |
| </fo:table-row> |
| <fo:table-row> |
| <fo:table-cell> |
| <fo:block font-family="Arial" font-size="12pt" font-weight="normal">يرحب بكم ستاندرد تشارترد بنك و يتطلع لتقديم خدمات الحسابات المصرفية لكم</fo:block> |
| </fo:table-cell> |
| </fo:table-row> |
| </fo:table-body> |
| </fo:table> |
| </fo:block> |
| </fo:flow> |
| </fo:page-sequence> |
| </fo:root> |
| </fo> |
| <checks> |
| <eval expected="2" xpath="count(//lineArea)"/> |
| <eval expected="1" xpath="(//lineArea)[1]/@level"/> |
| <eval expected="88800" xpath="(//lineArea)[1]/@end-indent"/> |
| <eval expected="1" xpath="(//lineArea)[2]/@level"/> |
| <eval expected="88800" xpath="(//lineArea)[2]/@end-indent"/> |
| </checks> |
| </testcase> |