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-container_overflow_2.xml 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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 behaviour with overflowing content on block-containers.
  21. </p>
  22. <p>
  23. Visual check: If there's a red line between the second and third line, the
  24. behaviour is wrong.
  25. </p>
  26. </info>
  27. <fo>
  28. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  29. <fo:layout-master-set>
  30. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
  31. <fo:region-body/>
  32. </fo:simple-page-master>
  33. </fo:layout-master-set>
  34. <fo:page-sequence master-reference="normal" text-align="justify">
  35. <fo:flow flow-name="xsl-region-body">
  36. <fo:block-container id="bc1" background-color="lightgray" block-progression-dimension="2em">
  37. <fo:block id="text" border="solid 1pt red" border-before-width.conditionality="retain">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Pellentesque hendrerit euismod velit. Nulla facilisi. Etiam et risus at neque ultrices facilisis. Donec lectus est, nonummy quis, rhoncus bibendum, porta at, nisl.</fo:block>
  38. </fo:block-container>
  39. </fo:flow>
  40. </fo:page-sequence>
  41. </fo:root>
  42. </fo>
  43. <checks>
  44. <!-- fo:block must not be broken into multiple parts! -->
  45. <eval expected="1" xpath="count(//block[@prod-id='text'])"/>
  46. <!-- The following shows the overflow -->
  47. <true expected="24000" xpath="//block[@prod-id='bc1' and @is-viewport-area='true']/@bpd"/>
  48. <true expected="60600" xpath="//block[@prod-id='bc1' and @is-reference-area='true']/@bpd"/>
  49. </checks>
  50. </testcase>