Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

leader_background-color.xml 3.6KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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 fo:leader with background-color
  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">
  27. <fo:region-body/>
  28. </fo:simple-page-master>
  29. </fo:layout-master-set>
  30. <fo:page-sequence master-reference="normal" white-space-collapse="true">
  31. <fo:flow flow-name="xsl-region-body">
  32. <fo:block>
  33. <fo:leader leader-length="36pt" leader-pattern="dots" background-color="yellow"/>
  34. dots yellow background
  35. </fo:block>
  36. <fo:block>
  37. <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" background-color="yellow"/>
  38. rule solid yellow background
  39. </fo:block>
  40. <fo:block>
  41. <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" background-color="yellow"/>
  42. rule double yellow background
  43. </fo:block>
  44. <fo:block>
  45. <fo:leader leader-length="36pt" leader-pattern="space" background-color="yellow"/>
  46. space yellow background
  47. </fo:block>
  48. <fo:block>
  49. <!-- use content currently causes a ClassCastException
  50. <fo:leader leader-length="36pt" leader-pattern="use-content" background-color="yellow">x</fo:leader>
  51. use-content x yellow background
  52. -->
  53. </fo:block>
  54. </fo:flow>
  55. </fo:page-sequence>
  56. </fo:root>
  57. </fo>
  58. <checks>
  59. <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
  60. <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
  61. <eval expected="36000" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
  62. <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/inlineparent/@background"/>
  63. <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
  64. <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
  65. <eval expected="36000" xpath="//flow/block[2]/lineArea/leader/@ipd"/>
  66. <eval expected="color=#ffff00" xpath="//flow/block[2]/lineArea/leader/@background"/>
  67. <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
  68. <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
  69. <eval expected="36000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
  70. <eval expected="color=#ffff00" xpath="//flow/block[3]/lineArea/leader/@background"/>
  71. <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
  72. <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
  73. <eval expected="36000" xpath="//flow/block[4]/lineArea/space/@ipd"/>
  74. <eval expected="color=#ffff00" xpath="//flow/block[4]/lineArea/space/@background"/>
  75. </checks>
  76. </testcase>