On Thursday 23 August 2001 17:38, David Kane wrote:
> * The format of the color does not appear to comply with the spec. The
> CSS spec (http://www.w3.org/TR/REC-CSS2/syndata.html#value-def-color)
> which is referenced in the SVG spec
> (http://www.w3.org/TR/2001/PR-SVG-20010719/painting.html#SpecifyingPaint)
> offers several RGB color representations.:
>
> EM { color: #f00 } /* #rgb */
> EM { color: #ff0000 } /* #rrggbb */
> EM { color: rgb(255,0,0) } /* integer range 0 - 255 */
> EM { color: rgb(100%, 0%, 0%) } /* float range 0.0% - 100.0% */
>
> It looks like batik is trying a combination of the 3rd and 4th, using
> values between 0 and 255, but doing do with a float, instead of an integer
> format.
This is a bug in getCssText(). I will fix it as soon as possible.
>
> * The second problem is the quotaton marks around the font-family style
> attribute. Because the style attribute itself is written with quotes, the
> attribute is no longer well formed.
getCssText() is suitable for doing things like:
element.setAttributeNS(null, "style", styles.getCssText());
But you can't write it directly in an XML file. Before you must replace
' " < > & by ' " < > &
--
Stephane.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]