[cairo] XML parsing order problem?

MenTaLguY mental at rydia.net
Thu Jan 6 08:34:09 PST 2005


On Wed, 2005-01-05 at 10:06, Chris wrote:
> It seems that if a radial gradient references a linear gradient that
> comes later in the SVG/XML file, then it will not be rendered.

It seems to be a common error among SVG implementors.  Sodipodi had
those kinds of problems, as does "normal" librsvg.

See also e.g.:

http://bugzilla.gnome.org/show_bug.cgi?id=161467

The correct behavior, though, is to render the gradient regardless of
order in the file, at least once all the requisite elements are loaded
(which, if you're using an event-based parsing API, does necessitate
some sort of callback mechanism).

-mental
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.freedesktop.org/archives/cairo/attachments/20050106/ae61c669/attachment.pgp


More information about the cairo mailing list