Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

block_break-before_bug46240.xml 2.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. Test for Bugzilla #46240: break-before breaks span-change.
  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 page-height="841.8898pt" page-width="595.27563pt" master-name="page">
  27. <fo:region-body margin-right="49.6063pt" margin-left="29.763779pt" margin-bottom="46.771652pt" margin-top="36.850395pt" column-count="2"/>
  28. </fo:simple-page-master>
  29. <fo:page-sequence-master master-name="contents">
  30. <fo:single-page-master-reference master-reference="page"/>
  31. </fo:page-sequence-master>
  32. </fo:layout-master-set>
  33. <fo:page-sequence master-reference="contents" initial-page-number="2">
  34. <fo:flow flow-name="xsl-region-body">
  35. <fo:block id="block-1" span="all" break-before="odd-page" break-after="even-page">
  36. <fo:inline font-size="16.0pt">xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx </fo:inline>
  37. </fo:block>
  38. <fo:block />
  39. </fo:flow>
  40. </fo:page-sequence>
  41. <fo:page-sequence master-reference="contents">
  42. <fo:flow flow-name="xsl-region-body">
  43. <fo:block id="block-2" span="all" break-before="even-page">
  44. <fo:inline font-size="16.0pt">xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx xxx </fo:inline>
  45. </fo:block>
  46. </fo:flow>
  47. </fo:page-sequence>
  48. </fo:root>
  49. </fo>
  50. <checks>
  51. <eval expected="5" xpath="count(//pageViewport)" />
  52. <eval expected="3" xpath="count(//pageSequence[1]/pageViewport)" />
  53. <eval expected="1" xpath="count(//block[@prod-id='block-1']/lineArea)" />
  54. <eval expected="2" xpath="count(//pageSequence[2]/pageViewport)" />
  55. <eval expected="1" xpath="count(//block[@prod-id='block-2']/lineArea)" />
  56. </checks>
  57. </testcase>