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.

block_border-style.xml 6.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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 painting of borders and border-style.
  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:table table-layout="fixed" width="100%" border-collapse="separate">
  33. <fo:table-column column-width="1in" number-columns-repeated="5"/>
  34. <fo:table-body>
  35. <fo:table-row>
  36. <fo:table-cell border="solid 5pt black" background-color="lightgray">
  37. <fo:block>solid</fo:block>
  38. </fo:table-cell>
  39. <fo:table-cell border="dashed 5pt red">
  40. <fo:block>dashed</fo:block>
  41. </fo:table-cell>
  42. <fo:table-cell border="dotted 5pt green" background-color="lightgray">
  43. <fo:block>dotted</fo:block>
  44. </fo:table-cell>
  45. <fo:table-cell border="double 5pt blue">
  46. <fo:block>double</fo:block>
  47. </fo:table-cell>
  48. <fo:table-cell border="groove 5pt orange" background-color="orange">
  49. <fo:block>groove</fo:block>
  50. </fo:table-cell>
  51. </fo:table-row>
  52. <fo:table-row>
  53. <fo:table-cell border="solid 2pt black" background-color="lightgray">
  54. <fo:block>solid</fo:block>
  55. </fo:table-cell>
  56. <fo:table-cell border="dashed 2pt red">
  57. <fo:block>dashed</fo:block>
  58. </fo:table-cell>
  59. <fo:table-cell border="dotted 2pt green" background-color="lightgray">
  60. <fo:block>dotted</fo:block>
  61. </fo:table-cell>
  62. <fo:table-cell border="double 2pt blue">
  63. <fo:block>double</fo:block>
  64. </fo:table-cell>
  65. <fo:table-cell border="groove 2pt orange" background-color="orange">
  66. <fo:block>groove</fo:block>
  67. </fo:table-cell>
  68. </fo:table-row>
  69. <fo:table-row>
  70. <fo:table-cell border="groove 5pt gray" background-color="gray">
  71. <fo:block color="white">groove</fo:block>
  72. </fo:table-cell>
  73. <fo:table-cell border="ridge 5pt red">
  74. <fo:block>ridge</fo:block>
  75. </fo:table-cell>
  76. <fo:table-cell border="inset 5pt green">
  77. <fo:block>inset</fo:block>
  78. </fo:table-cell>
  79. <fo:table-cell border="outset 5pt blue" background-color="lightgray">
  80. <fo:block>outset</fo:block>
  81. </fo:table-cell>
  82. </fo:table-row>
  83. <fo:table-row>
  84. <fo:table-cell border="groove 2pt gray" background-color="gray">
  85. <fo:block color="white">groove</fo:block>
  86. </fo:table-cell>
  87. <fo:table-cell border="ridge 2pt red">
  88. <fo:block>ridge</fo:block>
  89. </fo:table-cell>
  90. <fo:table-cell border="inset 2pt green">
  91. <fo:block>inset</fo:block>
  92. </fo:table-cell>
  93. <fo:table-cell border="outset 2pt blue" background-color="lightgray">
  94. <fo:block>outset</fo:block>
  95. </fo:table-cell>
  96. </fo:table-row>
  97. <fo:table-row>
  98. <fo:table-cell border="none 5pt yellow" background-color="brown">
  99. <fo:block>none</fo:block>
  100. </fo:table-cell>
  101. <fo:table-cell border="hidden 5pt yellow" background-color="brown">
  102. <fo:block>hidden</fo:block>
  103. </fo:table-cell>
  104. </fo:table-row>
  105. <fo:table-row>
  106. <fo:table-cell border="none 2pt yellow" background-color="brown">
  107. <fo:block>none</fo:block>
  108. </fo:table-cell>
  109. <fo:table-cell border="hidden 2pt yellow" background-color="brown">
  110. <fo:block>hidden</fo:block>
  111. </fo:table-cell>
  112. </fo:table-row>
  113. </fo:table-body>
  114. </fo:table>
  115. </fo:flow>
  116. </fo:page-sequence>
  117. </fo:root>
  118. </fo>
  119. <checks>
  120. <eval expected="solid" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
  121. <eval expected="72000" xpath="//flow/block[1]/block[1]/@ipda"/>
  122. <eval expected="62000" xpath="//flow/block[1]/block[1]/@ipd"/>
  123. <!-- border-style="none" -->
  124. <eval expected="none" xpath="//flow/block[1]/block[19]/block[1]/lineArea"/>
  125. <eval expected="72000" xpath="//flow/block[1]/block[19]/@ipda"/>
  126. <eval expected="72000" xpath="//flow/block[1]/block[19]/@ipd"/>
  127. <eval expected="0 0 0 0" xpath="//flow/block[1]/block[19]/@bap"/>
  128. <!-- border-style="hidden" -->
  129. <eval expected="hidden" xpath="//flow/block[1]/block[20]/block[1]/lineArea"/>
  130. <eval expected="72000" xpath="//flow/block[1]/block[20]/@ipda"/>
  131. <eval expected="72000" xpath="//flow/block[1]/block[20]/@ipd"/>
  132. <eval expected="0 0 0 0" xpath="//flow/block[1]/block[20]/@bap"/>
  133. </checks>
  134. </testcase>