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

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: ODF 1.4
    • Component/s: Part (Schema), Text
    • Labels:
      None
    • 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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: