Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

table_row-span_missing-cell_bug43633.xml 4.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  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. Check for bug #43633: the second row of the table has only a spanning cell, and the second
  21. cell is missing. This was leading to the spanning cell overlapping cell 1.1, because no
  22. offset was recorded for the second row.
  23. </p>
  24. </info>
  25. <fo>
  26. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
  27. <fo:layout-master-set>
  28. <fo:simple-page-master master-name="normal" page-width="20cm" page-height="15cm" margin="20pt">
  29. <fo:region-body/>
  30. </fo:simple-page-master>
  31. </fo:layout-master-set>
  32. <fo:page-sequence master-reference="normal">
  33. <fo:flow flow-name="xsl-region-body">
  34. <fo:block>Before the table</fo:block>
  35. <fo:table table-layout="fixed" width="200pt" border="1pt solid black"
  36. border-collapse="separate">
  37. <fo:table-column column-width="proportional-column-width(1)"
  38. number-columns-repeated="2"/>
  39. <fo:table-body>
  40. <fo:table-row>
  41. <fo:table-cell border="1pt solid black" background-color="#FFC0C0">
  42. <fo:block>Cell 1.1</fo:block>
  43. <fo:block>Cell 1.1</fo:block>
  44. </fo:table-cell>
  45. <fo:table-cell border="1pt solid black" background-color="#FFC0C0">
  46. <fo:block>Cell 1.2</fo:block>
  47. </fo:table-cell>
  48. </fo:table-row>
  49. <fo:table-row>
  50. <fo:table-cell border="1pt solid black" background-color="#C0C0FF"
  51. number-rows-spanned="2">
  52. <fo:block>Cell 2.1</fo:block>
  53. <fo:block>Cell 2.1</fo:block>
  54. </fo:table-cell>
  55. </fo:table-row>
  56. <fo:table-row>
  57. <fo:table-cell border="1pt solid black" background-color="#C0C0FF">
  58. <fo:block>Cell 3.2</fo:block>
  59. </fo:table-cell>
  60. </fo:table-row>
  61. </fo:table-body>
  62. </fo:table>
  63. <fo:block>After the table</fo:block>
  64. </fo:flow>
  65. </fo:page-sequence>
  66. </fo:root>
  67. </fo>
  68. <checks>
  69. <!-- cell 1.1 -->
  70. <eval expected="" xpath="//flow/block[2]/block[1]/@top-offset"/>
  71. <eval expected="1000" xpath="//flow/block[2]/block[1]/@left-offset"/>
  72. <eval expected="28800" xpath="//flow/block[2]/block[1]/@bpd"/>
  73. <eval expected="30800" xpath="//flow/block[2]/block[1]/@bpda"/>
  74. <!-- cell 1.2 -->
  75. <eval expected="" xpath="//flow/block[2]/block[2]/@top-offset"/>
  76. <eval expected="101000" xpath="//flow/block[2]/block[2]/@left-offset"/>
  77. <eval expected="28800" xpath="//flow/block[2]/block[2]/@bpd"/>
  78. <eval expected="30800" xpath="//flow/block[2]/block[2]/@bpda"/>
  79. <!-- cell 2.1 -->
  80. <eval expected="30800" xpath="//flow/block[2]/block[3]/@top-offset"/>
  81. <eval expected="1000" xpath="//flow/block[2]/block[3]/@left-offset"/>
  82. <eval expected="28800" xpath="//flow/block[2]/block[3]/@bpd"/>
  83. <eval expected="30800" xpath="//flow/block[2]/block[3]/@bpda"/>
  84. <!-- cell 3.2 -->
  85. <eval expected="30800" xpath="//flow/block[2]/block[4]/@top-offset"/>
  86. <eval expected="101000" xpath="//flow/block[2]/block[4]/@left-offset"/>
  87. <eval expected="28800" xpath="//flow/block[2]/block[4]/@bpd"/>
  88. <eval expected="30800" xpath="//flow/block[2]/block[4]/@bpda"/>
  89. </checks>
  90. </testcase>