You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

block-container_absolute-position_multi-column.xml 3.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <!-- $Id$ -->
  17. <testcase>
  18. <info>
  19. <p>
  20. This test checks absolutely positioned block-containers in multi-column documents.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="0.1in">
  27. <fo:region-body column-count="2" column-gap="0.2in"/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal">
  31. <fo:flow flow-name="xsl-region-body" text-align="justify">
  32. <fo:block background-color="yellow">
  33. This should not have any line floating over it! This should not have any
  34. line floating over it! This should not have any line floating over it! This
  35. should not have any line floating over it!
  36. </fo:block>
  37. <fo:block span="all" background-color="orange">
  38. <fo:block padding-top="0.5em" padding-bottom="0.5em">
  39. This should not have any line floating over it! This should not have any
  40. line floating over it! This should not have any line floating over
  41. it!<fo:block />
  42. </fo:block>
  43. </fo:block>
  44. <fo:block background-color="yellow">
  45. This should not have any line floating over it! This should not have any
  46. line floating over it! This should not have any line floating over it! This
  47. should not have any line floating over it!
  48. </fo:block>
  49. <fo:block-container absolute-position="absolute"
  50. left="2.5in - 0.1in - 0.025in" top="auto" width="0.05in" height="100%" background-color="red">
  51. <fo:block/>
  52. </fo:block-container>
  53. <fo:block-container absolute-position="absolute" left="2.5in - 0.1in" top="auto"
  54. reference-orientation="90">
  55. <fo:block width="100%" line-height="1pt" background-color="black"
  56. height="1pt">&#xA0;</fo:block>
  57. </fo:block-container>
  58. </fo:flow>
  59. </fo:page-sequence>
  60. </fo:root>
  61. </fo>
  62. <checks>
  63. <!--
  64. This test is only visually interesting! Visually check that the block container begins
  65. directly under the spanned block!
  66. -->
  67. <eval expected="1" xpath="count(//pageViewport)"/>
  68. </checks>
  69. </testcase>