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

Animation causes document to hang

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVG Viewer
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

      The following document causes Squiggle to hang:

      <?xml-stylesheet type="text/css" href="CSSButton3.css"?>
      <svg xmlns="http://www.w3.org/2000/svg"
           xmlns:xlink="http://www.w3.org/1999/xlink">
          <defs>
              <rect id="buttonBase" width="120" height="30" rx="5" ry="5"/>
              <use id="buttonNormal" xlink:href="#buttonBase" class="CSSButtonNormal"/
      >
              <use id="buttonHighlight" xlink:href="#buttonBase"
      class="CSSButtonHighlight"/>
              <use id="buttonDepressed" xlink:href="#buttonBase"
      class="CSSButtonDepressed">
                  <!--
                  <animate attributeName="stroke-dashoffset" attributeType="CSS"
                           from="100%" to="0%" dur="5s" repeatCount="indefinite" />
                  -->
              </use>
          </defs>
          <g>
              <use xlink:href="#buttonNormal" x="100" y="100" id="ButtonNormal">
                  <set attributeName="xlink:href" attributeType="XML"
                       to="#buttonHighlight" begin="mouseover;mouseup"
      end="mouseout" />
                  <set attributeName="xlink:href" attributeType="XML"
                       to="#buttonDepressed" begin="mousedown"
      end="mouseup;mouseout" />
              </use>
          </g>
      </svg>

      and CSSButton3.css is:

      .CSSButtonNormal

      {fill:gray;stroke:black;stroke-width:2;}

      .CSSButtonHighlight

      {fill:white;stroke:black;stroke-width:2;}

      .CSSButtonDepressed

      {fill:black;stroke:black;stroke-width:2;stroke-dasharray:5 5;}

        Attachments

          Activity

            People

            • Assignee:
              batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
              Reporter:
              cam Cameron McCormack
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: