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.

flow_changing-ipd_text-indent.xml 2.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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 that the text-indent property plays nicely with changing IPD.
  21. </p>
  22. </info>
  23. <fo>
  24. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  25. <fo:layout-master-set>
  26. <fo:simple-page-master master-name="wide-page"
  27. page-height="40pt" page-width="220pt" margin="10pt">
  28. <fo:region-body/>
  29. </fo:simple-page-master>
  30. <fo:simple-page-master master-name="narrow-page"
  31. page-height="60pt" page-width="180pt" margin="10pt">
  32. <fo:region-body/>
  33. </fo:simple-page-master>
  34. <fo:page-sequence-master master-name="pages">
  35. <fo:single-page-master-reference master-reference="wide-page"/>
  36. <fo:single-page-master-reference master-reference="narrow-page"/>
  37. </fo:page-sequence-master>
  38. </fo:layout-master-set>
  39. <fo:page-sequence master-reference="pages">
  40. <fo:flow flow-name="xsl-region-body" text-align="justify" font-size="8pt" line-height="10pt">
  41. <fo:block text-indent="2em">Setting a non-zero value for the “text-indent” property on an
  42. fo:block should not cause loss of text. Setting a non-zero value for the “text-indent”
  43. property on an fo:block should not cause loss of text.</fo:block>
  44. </fo:flow>
  45. </fo:page-sequence>
  46. </fo:root>
  47. </fo>
  48. <checks>
  49. <eval expected="non-" xpath="//pageViewport[1]//lineArea[2]//word[position()=last()]"/>
  50. <eval expected="" xpath="//pageViewport[2]//lineArea[1]/@start-indent"/>
  51. <eval expected="zero" xpath="//pageViewport[2]//lineArea[1]//word[1]"/>
  52. </checks>
  53. </testcase>