Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

block-container_overflow_1.xml 3.5KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 overflowing content on block-containers.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" text-align="justify">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block-container id="auto" background-color="lightgray" space-after="5pt">
  33. <fo:block start-indent="-5pt" end-indent="-5pt">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>
  34. </fo:block-container>
  35. <fo:block-container id="visible" background-color="lightgray" space-after="5pt" overflow="visible">
  36. <fo:block start-indent="-5pt" end-indent="-5pt">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>
  37. </fo:block-container>
  38. <fo:block-container id="hidden" background-color="lightgray" space-after="5pt" overflow="hidden">
  39. <fo:block start-indent="-5pt" end-indent="-5pt">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>
  40. </fo:block-container>
  41. <fo:block-container id="scroll" background-color="lightgray" space-after="5pt" overflow="scroll">
  42. <fo:block start-indent="-5pt" end-indent="-5pt">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>
  43. </fo:block-container>
  44. </fo:flow>
  45. </fo:page-sequence>
  46. </fo:root>
  47. </fo>
  48. <checks>
  49. <true xpath="not(//block[@prod-id='auto' and @is-viewport-area='true']/@clipped)"/>
  50. <true xpath="not(//block[@prod-id='visible' and @is-viewport-area='true']/@clipped)"/>
  51. <true xpath="//block[@prod-id='hidden' and @is-viewport-area='true']/@clipped"/>
  52. <true xpath="not(//block[@prod-id='scroll' and @is-viewport-area='true']/@clipped)"/>
  53. </checks>
  54. </testcase>