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

SVGCSSStyler places 'fill' in style attribute for animate/animateColor/animateMotion/animateTransform/set elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 1.7
    • None
    • SVGGraphics2D
    • None
    • Operating System: Windows Vista
      Platform: PC

    Description

      The SVGCSSStyler moves xml attributes found in the set on SVGStylingAttributes from the xml element into the style xml attribute. However, there are elements which have a fill attribute that should not be moved, namely animate/animateColor/animateMotion/animateTransform/set. For these elements, SVGCSSStyler exhibits incorrect behavior.

      Attached is a patch which only moves the xml attributes into the style if it is found in the SVGStylingAttributes set and the element/attribute combination is not excluded. The exclusions are kept in a private mapping. This mapping can be added to in the future if other combinations of element/attribute should be excluded from being styled by the SVGCSSStyler.

      Attachments

        1. SVGCSSStyler.patch
          2 kB
          Bruce Duncan

        Activity

          People

            batik-dev@xmlgraphics.apache.org Batik Developer's Mailing list
            bduncan@visualmining.com Bruce Duncan
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: