Uploaded image for project: 'OASIS Open Document Format for Office Applications (OpenDocument) TC'
  1. OASIS Open Document Format for Office Applications (OpenDocument) TC
  2. OFFICE-4092

negative value of fo:text-indent different to CSS in regard to background fill

    XMLWordPrintable

    Details

    • Proposal:
      Hide

      Add to section "20.225 fo:text-indent" the sentence:
      In the OpenDocument XSL-compatible namespace, a negative value of attribute fo:text-indent extends the paragraph content area to include the text of the first line of the paragraph.

      Show
      Add to section "20.225 fo:text-indent" the sentence: In the OpenDocument XSL-compatible namespace, a negative value of attribute fo:text-indent extends the paragraph content area to include the text of the first line of the paragraph.
    • Resolution:
      Hide

      20.228 fo:text-indent

      The fo:text-indent attribute specifies a positive or negative indent for the first line of a paragraph. See §7.15.11 of [XSL]. The attribute value is a length. If the attribute is contained in a common style, the attribute value may be also a percentage that refers to the corresponding text indent of a parent style.

      In the OpenDocument XSL-compatible namespace, a negative value of attribute fo:text-indent extends the paragraph content area to include the text of the first line of the paragraph.

      Show
      20.228 fo:text-indent The fo:text-indent attribute specifies a positive or negative indent for the first line of a paragraph. See §7.15.11 of [XSL] . The attribute value is a length. If the attribute is contained in a common style, the attribute value may be also a percentage that refers to the corresponding text indent of a parent style. In the OpenDocument XSL-compatible namespace, a negative value of attribute fo:text-indent extends the paragraph content area to include the text of the first line of the paragraph.

      Description

      The description for fo:text-indent (20.225, part 3, ODF 1.3) refers to §7.15.11 of [XSL], which in turn refers to CSS http://www.w3.org/TR/REC-CSS2/text.html#propdef-text-indent.
      When you use this attribute with negative value together with fo:margin-left on a paragraph with background color, you will notice, that the colored area is different in text documents compared to rendering in browsers.
      Word, LibreOffice and SoftMaker render the colored area so, that the entire text is included. Browsers (tested Seamonkey and Chrome) render the colored area so, that they take the margin-left value and render part of the first line outside the colored area.
      I suggest to add, that in ODF the outset part is handled as paragraph content area too, in contrast to the rendering of these attribute in a browsers.

        Attachments

        1. IndentExample.odt
          11 kB
          Regina Henschel
        2. IndentExample.xhtml
          3 kB
          Regina Henschel
        3. Screenshot left Chrome right LibreOffice.png
          56 kB
          Regina Henschel

          Activity

            People

            • Assignee:
              regina.henschel Regina Henschel
              Reporter:
              regina.henschel Regina Henschel
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: