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_reference-orientation_2.xml 3.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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 the element lists of in-flow block-containers with reference orientation.
  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">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence id="bc0" master-reference="normal">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block-container width="60pt" reference-orientation="0">
  33. <fo:block>ABC</fo:block>
  34. <fo:block font-size="200%">ABC</fo:block>
  35. </fo:block-container>
  36. <fo:block>EOPS</fo:block>
  37. </fo:flow>
  38. </fo:page-sequence>
  39. <fo:page-sequence id="bc90" master-reference="normal">
  40. <fo:flow flow-name="xsl-region-body">
  41. <fo:block-container width="60pt" reference-orientation="90">
  42. <fo:block>ABC</fo:block>
  43. <fo:block font-size="200%">ABC</fo:block>
  44. </fo:block-container>
  45. <fo:block>EOPS</fo:block>
  46. </fo:flow>
  47. </fo:page-sequence>
  48. <fo:page-sequence id="bc180" master-reference="normal">
  49. <fo:flow flow-name="xsl-region-body">
  50. <fo:block-container width="60pt" reference-orientation="180" background-color="yellow">
  51. <fo:block>ABC</fo:block>
  52. <fo:block font-size="200%">ABC</fo:block>
  53. </fo:block-container>
  54. <fo:block>EOPS</fo:block>
  55. </fo:flow>
  56. </fo:page-sequence>
  57. </fo:root>
  58. </fo>
  59. <checks>
  60. <element-list category="breaker" id="bc0">
  61. <!-- content is inlined -->
  62. <box w="14400"/>
  63. <penalty w="0" p="0"/>
  64. <box w="28800"/>
  65. <penalty w="0" p="0"/>
  66. <box w="14400"/>
  67. <skip>3</skip>
  68. </element-list>
  69. <element-list category="breaker" id="bc90">
  70. <!-- one box with the length of the rotated content-width -->
  71. <box w="60000"/>
  72. <penalty w="0" p="0"/>
  73. <box w="14400"/>
  74. <skip>3</skip>
  75. </element-list>
  76. <element-list category="breaker" id="bc180">
  77. <!-- one box with the length of the effective content-height (auto-heigth) -->
  78. <!-- Maybe the element list could be reversed somehow so the b-c can still be broken
  79. correctly, even if ref-or="180". But we leave that be for the time being. -->
  80. <box w="43200"/>
  81. <penalty w="0" p="0"/>
  82. <box w="14400"/>
  83. <skip>3</skip>
  84. </element-list>
  85. </checks>
  86. </testcase>