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.

keep_within-page_multi-column_overflow.xml 2.5KB

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>This test checks for a remaining issue after adding support
  20. for keep-*.within column (see Bugzilla 46905).
  21. keep-together.within-page does not work as expected in multi-column
  22. layout. If the part does not fit into one page, it will ultimately
  23. still be broken.
  24. </p>
  25. </info>
  26. <fo>
  27. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  28. <fo:layout-master-set>
  29. <fo:simple-page-master master-name="page" page-width="400pt" page-height="70pt">
  30. <fo:region-body column-count="5" />
  31. </fo:simple-page-master>
  32. </fo:layout-master-set>
  33. <fo:page-sequence master-reference="page" font-size="10pt">
  34. <fo:flow flow-name="xsl-region-body">
  35. <!-- block must be kept together within the same page -->
  36. <fo:block id="block-4a" keep-together.within-page="always">
  37. [BOB-4a] foo bar foo bar foo bar foo bar foo bar
  38. foo bar foo bar foo bar foo bar foo bar foo bar
  39. foo bar foo bar foo bar foo bar foo bar foo bar
  40. foo bar foo bar foo bar foo bar foo bar foo bar
  41. foo bar foo bar foo bar foo bar foo bar foo bar
  42. foo bar foo bar foo bar foo bar foo bar foo bar
  43. foo bar foo bar foo bar foo bar foo bar foo bar
  44. foo bar foo bar foo bar foo bar foo bar foo bar
  45. foo bar foo bar foo bar foo bar foo bar foo bar
  46. foo bar foo bar foo bar foo bar foo bar foo bar
  47. foo bar foo bar foo bar foo bar foo bar [EOB-4a]
  48. </fo:block>
  49. </fo:flow>
  50. </fo:page-sequence>
  51. </fo:root>
  52. </fo>
  53. <checks>
  54. <eval expected="1" xpath="count(//pageViewport)" />
  55. </checks>
  56. </testcase>