Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-914

[PATCH] Nested baseline-shift are not additive

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      According to the spec (http://www.w3.org/TR/SVG11/text.html#BaselineShiftProperty),
      baseline-shift properties can nest and are additive but not inheritable.

      the following example is expected to render text on the same line though the tspan is back on the baseline:

      <text baseline-shift="10pt">the quick <tspan fill="brown">brown</tspan> fox</text>

      the following example is expected to render the tspan within another tspan higher up compared to the baseline:

      <text> using <tspan baseline-shift="super">super <tspan baseline-shift="5pt">super!</tspan> script</tspan></text>

      Attached are testcases for the baseline-shift property

      Attachments

        1. baseline-shift.svg
          1 kB
          Nicolas Socheleau
        2. textLayout3.svg
          4 kB
          Nicolas Socheleau
        3. baseline-shift.diff
          6 kB
          Nicolas Socheleau
        4. baseline-shift.diff
          6 kB
          Nicolas Socheleau
        5. baseline-shift-animate.svg
          2 kB
          Nicolas Socheleau
        6. baseline-shift-script.svg
          2 kB
          Nicolas Socheleau
        7. baseline-shift.diff3
          6 kB
          Nicolas Socheleau

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            nicolas.socheleau@quickoffice.com Nicolas Socheleau

            Dates

              Created:
              Updated:

              Slack

                Issue deployment