diff options
author | Simon Steiner <ssteiner@apache.org> | 2023-12-15 14:45:37 +0000 |
---|---|---|
committer | Simon Steiner <ssteiner@apache.org> | 2023-12-15 14:45:37 +0000 |
commit | 01e520466cb43fb5e152c2faed5a47adac0c8f9c (patch) | |
tree | f6d347e568b601f83aa7605153c4401abc0bed52 /fop | |
parent | 23e173b7e6e095c15ac2384e462abbc4281f3e32 (diff) | |
download | xmlgraphics-fop-01e520466cb43fb5e152c2faed5a47adac0c8f9c.tar.gz xmlgraphics-fop-01e520466cb43fb5e152c2faed5a47adac0c8f9c.zip |
FOP-2764: footnote-body ignores rl-tb writing mode by João André Gonçalves
Diffstat (limited to 'fop')
-rw-r--r-- | fop/test/layoutengine/standard-testcases/footnote_writing-mode_rl.xml | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/fop/test/layoutengine/standard-testcases/footnote_writing-mode_rl.xml b/fop/test/layoutengine/standard-testcases/footnote_writing-mode_rl.xml new file mode 100644 index 000000000..893c9ca7b --- /dev/null +++ b/fop/test/layoutengine/standard-testcases/footnote_writing-mode_rl.xml @@ -0,0 +1,72 @@ +<?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 test checks that the footnote respects writing-mode="rl" specified on block-container. + </p> + </info> + <fo> + <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> + <fo:layout-master-set> + <fo:simple-page-master master-name="first" margin-top="2cm" margin-bottom="2cm" margin-left="2cm" margin-right="2cm"> + <fo:region-body/> + </fo:simple-page-master> + </fo:layout-master-set> + <fo:page-sequence master-reference="first"> + <fo:flow flow-name="xsl-region-body"> + <fo:block-container writing-mode="rl-tb"> + <fo:block> + rightLeft + <fo:footnote> + <fo:inline>1</fo:inline> + <fo:footnote-body> + <fo:block> + <fo:inline>1</fo:inline> + footnoteRL + </fo:block> + </fo:footnote-body> + </fo:footnote> + </fo:block> + </fo:block-container> + <fo:block-container writing-mode="lr-tb"> + <fo:block> + leftRight + <fo:footnote> + <fo:inline>2</fo:inline> + <fo:footnote-body> + <fo:block> + <fo:inline>2</fo:inline> + footnoteLR + </fo:block> + </fo:footnote-body> + </fo:footnote> + </fo:block> + </fo:block-container> + </fo:flow> + </fo:page-sequence> + </fo:root> + </fo> + <checks> + <eval expected="1 rightLeft" xpath="//block[1]"/> + <eval expected="footnoteRL 1" xpath="//footnote/block[1]"/> + <eval expected="leftRight 2" xpath="//block[2]"/> + <eval expected="2 footnoteLR" xpath="//footnote/block[2]"/> + </checks> +</testcase> |