- feColorMatrix - there is bad implementation of the values attribute - I think, problem is caused by the incorrect parsing operation: white spaces should be IGNORED, but aren't! - also it seems another problem are real numbers written as ".5" ".79" etc.
Created attachment 16468 [details] test case
Comment on attachment 16468 [details] test case - Batik log: Loading document... Loading document completed in 135 ms Building document... org.apache.batik.bridge.BridgeException: feColorMatrix.svg:42 The attribute "values" of the element "feColorMatrix" is invalid at org.apache.batik.bridge.SVGFeColorMatrixElementBridge.convertValuesToSaturate(U nknown Source) at org.apache.batik.bridge.SVGFeColorMatrixElementBridge.createFilter(Unknown Source) at org.apache.batik.bridge.SVGFilterElementBridge.buildLocalFilterPrimitives(Unkno wn Source) at org.apache.batik.bridge.SVGFilterElementBridge.buildFilterPrimitives(Unknown Source) at org.apache.batik.bridge.SVGFilterElementBridge.createFilter(Unknown Source) at org.apache.batik.bridge.CSSUtilities.convertFilter(Unknown Source) at org.apache.batik.bridge.SVGTextElementBridge.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(Unknown Source) at org.apache.batik.bridge.GVTBuilder.buildComposite(Unknown Source) at org.apache.batik.bridge.GVTBuilder.build(Unknown Source) at org.apache.batik.swing.svg.GVTTreeBuilder.run(Unknown Source) Building document failed.
The problem line from your sample was line 42: <feColorMatrix type="saturate" in="SourceGraphic" values="30%"/> Reading the SVG 1.1 spec 15.10 on 'values': For type="saturate", values is a single real number value (0 to 1). The values attribute does not support percentages. Once I changed this to be '.3' the content loaded and appears to render fine.
(In reply to comment #3) > The problem line from your sample was line 42: > <feColorMatrix type="saturate" in="SourceGraphic" values="30%"/> > > Reading the SVG 1.1 spec 15.10 on 'values': > For type="saturate", values is a single real number value (0 to 1). > > The values attribute does not support percentages. Once I changed > this to be '.3' the content loaded and appears to render fine. OK, I understand. Thanks. ----------- http://www.w3.org/TR/SVG11/filters.html#feColorMatrix Text from spec.: For type="saturate", values is a single real number value (0 to 1). A saturate operation is equivalent to the following matrix operation: This code is cut off from SVG 1.1 spec. example: <filter id="Saturate40" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> <feColorMatrix type="saturate" in="SourceGraphic" values="40%"/> </filter> ---------- It's caused probably by great tolerance of the Adobe Viewer and a manner in practical graphics design domain... (I personally working as designer now.) My question is: Is the problem allow for this case percentage values? (Values are always in range 0..1)
What version of the SVG 1.1 spec are you looking at? My version (and the official online version) does not use '%': http://www.w3.org/TR/SVG11/filters.html#feColorMatrix To answer your question on if percentage can be used I don't think so since the values attribute is defined to be a list of '<number>' which does not allow units or percentages.
(In reply to comment #5) > What version of the SVG 1.1 spec are you looking at? exactly this file: http://www.w3.org/TR/SVG11/images/filters/feColorMatrix.svg