Re: [web-animations] Global timeline for isolated documents

Hi Dirk,

(2013/10/21 14:20), Dirk Schulze wrote:
> What is the global timeline for documents that are isolated and self contained in an <iframe> for instance? Is the global time line still the one from the host document? Does this isolated referenced document get a "virtual" global timeline that is just relative to the host documents timeline? I think we do not want scripts or stylesheets within the isolated document get information about the host languages global time line.

Each document has its own timeline. I expect content animated using 
markup runs against the timeline of the document where the markup is 
defined. So if you have animations/transitions defined in CSS in a 
parent document and applied to content in a seamless iframe, then they 
would run against the timeline of the parent document.

This is just my idea though. It's not specified in Web Animations since 
it's really an issue for the CSS and SVG integration documents to 
specify. (The Web Animations model just defines the timeline concept and 
says every document has one. When you create an animation using the API, 
you specify explicitly what timeline it runs against.)

With regards to the time relationship between the timeline of an 
iframe's content document and the timeline of a parent document, that 
part of the spec needs to be rewritten. It currently says the timeline 
starts when onload is fired (and hence the two timelines would not be 
synchronized) which is clearly wrong since animations need to be able to 
run before then.

Do you have use cases for the timeline of an iframe being synchronised 
with that of the parent document?

I'm not sure how it should work for SVG fonts--when should those 
animations run? At very least the glyphs defined within a single font 
should probably be synchronized and it's probably useful to synchronize 
across fonts. What do you think?

Or how about SVG filters defined in a separate file that use animation? 
For example, [1]. Should they be synchronized somehow?

Regards,

Brian

[1] http://brian.sol1.net/svg/demo/woah.html (I think you'll need to use 
Firefox to see the demo)

Received on Monday, 21 October 2013 13:03:50 UTC