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.

flow_changing-ipd_overflow.xml 2.4KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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. The overflow recovery mechanism must be disabled when the flow IPD changes.
  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="first-page"
  27. page-height="120pt" page-width="220pt" margin="10pt">
  28. <fo:region-body/>
  29. </fo:simple-page-master>
  30. <fo:simple-page-master master-name="page"
  31. page-height="120pt" page-width="120pt" margin="10pt">
  32. <fo:region-body/>
  33. </fo:simple-page-master>
  34. <fo:page-sequence-master master-name="pages">
  35. <fo:repeatable-page-master-alternatives>
  36. <fo:conditional-page-master-reference page-position="first" master-reference="first-page"/>
  37. <fo:conditional-page-master-reference master-reference="page"/>
  38. </fo:repeatable-page-master-alternatives>
  39. </fo:page-sequence-master>
  40. </fo:layout-master-set>
  41. <fo:page-sequence master-reference="pages">
  42. <fo:flow flow-name="xsl-region-body">
  43. <fo:block-container height="110pt" background-color="#F0F0F0">
  44. <fo:block>This block-container overflows the page.</fo:block>
  45. </fo:block-container>
  46. <fo:block>After the big block-container.</fo:block>
  47. </fo:flow>
  48. </fo:page-sequence>
  49. </fo:root>
  50. </fo>
  51. <checks>
  52. <eval expected="2" xpath="count(//pageViewport)"/>
  53. <eval expected="This block-container overflows the" xpath="//pageViewport[1]//lineArea[1]"/>
  54. <eval expected="After the big" xpath="//pageViewport[2]//lineArea[1]"/>
  55. </checks>
  56. </testcase>