aboutsummaryrefslogtreecommitdiffstats
path: root/test/layoutengine
diff options
context:
space:
mode:
authorSimon Pepping <spepping@apache.org>2008-02-08 10:06:06 +0000
committerSimon Pepping <spepping@apache.org>2008-02-08 10:06:06 +0000
commitddad6e57c0912bc388986623366407577bcc11db (patch)
tree4f90e55e7e0126f4169b3a615a142915a8daf7e7 /test/layoutengine
parenta847bacc7db8bf4bdda5c2c3c245efb865121576 (diff)
downloadxmlgraphics-fop-ddad6e57c0912bc388986623366407577bcc11db.tar.gz
xmlgraphics-fop-ddad6e57c0912bc388986623366407577bcc11db.zip
Border and padding of inlines with nested blocks is now added to the
first or last paragraph of the first or last nested block git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_Interleaved_Page_Line_Breaking@619819 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'test/layoutengine')
-rw-r--r--test/layoutengine/standard-testcases/inline_border_padding_block_nested_3.xml62
1 files changed, 62 insertions, 0 deletions
diff --git a/test/layoutengine/standard-testcases/inline_border_padding_block_nested_3.xml b/test/layoutengine/standard-testcases/inline_border_padding_block_nested_3.xml
new file mode 100644
index 000000000..c2c269b7b
--- /dev/null
+++ b/test/layoutengine/standard-testcases/inline_border_padding_block_nested_3.xml
@@ -0,0 +1,62 @@
+<?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 fo:inlines with border and padding properties and nested inner blocks. Specifically, it tests whether the border and padding of the inline FO is properly added to the paragraph inside the inner block.
+ </p>
+ </info>
+ <fo>
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
+ <fo:layout-master-set>
+ <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
+ <fo:region-body/>
+ </fo:simple-page-master>
+ </fo:layout-master-set>
+ <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
+ <fo:flow flow-name="xsl-region-body" font-size="10pt" language="en" country="US" hyphenate="true">
+ <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
+ Before inline
+ <fo:inline border="solid 1pt red" padding="2pt" background-color="yellow"><fo:block>start</fo:block>
+ between blocks
+ <fo:block>end</fo:block></fo:inline>
+ After inline
+ </fo:block>
+ </fo:flow>
+ </fo:page-sequence>
+ </fo:root>
+ </fo>
+ <checks>
+ <element-list category="line" id="added-bap-start">
+ <box w="3000"/><!-- border and padding of inline -->
+ <box/>
+ <penalty/>
+ <glue/>
+ <penalty/>
+ </element-list>
+
+ <element-list category="line" id="added-bap-end">
+ <box/>
+ <box w="3000"/><!-- border and padding of inline -->
+ <penalty/>
+ <glue/>
+ <penalty/>
+ </element-list>
+ </checks>
+</testcase>