Hi Cameron,

Cameron McCormack <[EMAIL PROTECTED]> wrote on 04/19/2006 04:30:08 AM:

> > use2.setAttributeNS(null, "style", 
"fill:file:///C:/de.svg#MyGradient");

   This is incorrect syntax for the fill property. 

>   use2.setAttributeNS(null, "style", "fill: 
url(file:///C:/de.svg#MyGradient)");
> 
> which is correct syntax?

    This is 100% absolutely the correct syntax.

    The basic rule in CSS is silently ignore errors (on the grounds that 
it might be new content from a future version of the spec - apparently 
they haven't heard of versioning).  So oddly the fact that we complain 
when we can't load the resource file might be considered a bug in Batik, 
the silent ignoring of the unknown 'named color', 
"file:///C:/de.svg#MyGradient", 
is common CSS behavior.  It is unfortunate that Batik behaves differently 
in these two cases.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to