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

Animation causes document to hang

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Resolution: Fixed
    • 1.7
    • None
    • SVG Viewer
    • None
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: