You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-dev@xmlgraphics.apache.org by bu...@apache.org on 2010/07/05 01:38:56 UTC

DO NOT REPLY [Bug 49549] New: SVGCSSStyler places 'fill' in style attribute for animate/animateColor/animateMotion/animateTransform/set elements

https://issues.apache.org/bugzilla/show_bug.cgi?id=49549

           Summary: SVGCSSStyler places 'fill' in style attribute for
                    animate/animateColor/animateMotion/animateTransform/se
                    t elements
           Product: Batik
           Version: 1.7
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: SVGGraphics2D
        AssignedTo: batik-dev@xmlgraphics.apache.org
        ReportedBy: bduncan@visualmining.com


Created an attachment (id=25697)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25697)
A patch implementing exclusions to the css styling process

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.

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-help@xmlgraphics.apache.org