W3C home > Mailing lists > Public > www-svg@w3.org > November 2002

Re: 1.2 feedback: Streaming

From: Vincent Hardy <vincent.hardy@sun.com>
Date: Tue, 19 Nov 2002 17:12:04 +0100
Message-ID: <3DDA62D4.90109@sun.com>
To: Niklas Gustavsson <niklas@protocol7.com>
CC: www-svg@w3.org

Hello,

With the current spec., animations cannot start before the document is 
fully loaded because the time line starts on root element's onload (see 
19.2.2: "the document begin for a given SVG document fragment is defined 
to be the exact time at which the 'svg' element's SVGLoad event is 
triggered.") and the root element's onload is triggered when "the user 
agent has fully parsed the element and its descendants" (see 16.2, 
SVGLoad in the interactivity chapter).

If we want to have animations start before the end of the document 
loading, then I think we will have to modify that model.

I think that the section your pointed to in the conformance section is 
meant for situations where your have externalResourcesRequired set to 
false and you do get an SVGLoad event triggered while external resources 
are still fetched.

Vincent.

Niklas Gustavsson wrote:
>>>Your right. ASV does in fact conform with half of the requirements, it
>>
>>does
>>
>>>show content during loading. It does not however (in my quick
>>
>>experiments)
>>
>>>run any animations as is required.
>>
>>Do you have the document you used?
> 
> 
> I tried some different version. The last one looks like this:
> 
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
> <svg xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns="http://www.w3.org/2000/svg" width="100%" height="100%">
>     <text x="100" y="100">Begining of document</text>
>     <rect id="kalle" width="50" height="50" fill="green" />
>     <animateColor xlink:href="#kalle" attributeName="fill" from="green"
> to="red" begin="kalle.click" dur="2"  />
> 
>     <!-- 3 Mb comment -->
> 
>     <animateColor xlink:href="#kalle" attributeName="fill" from="green"
> to="blue" begin="kalle.click" dur="2"  />
>     <text x="100" y="150">End of document</text>
> </svg>
> 
>>One thing to note is what are you animating at which time, the beginning
>>animation is normally the onload of the containing SVG (see
>>http://www.w3.org/TR/SVG/animate.html#RelationshipToSMILAnimation ) so
>>your animation may well not have been starting simply because time 0 had
>>never been reached, to see some animation, you'd need a number of svg
>>elements in your document, however it appears ASV does not support this
>>either - but that would appear to be a problem w.r.t. to when onload
>>fires for a given element, as much as not supporting animations -
>>javascript based animations work from the word go...
> 
> 
> I only tried using SMIL animation. My guess is that this is what the spec
> means by "animation" even though it could certainly be done using scripting.
> SMIL animation doesn't start either on time 0 or on events before to entire
> document is loaded. Making it pretty useless for streaming.
> 
> /niklas
> 
> 
> 
> 
Received on Tuesday, 19 November 2002 11:16:12 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:23 GMT