shans/web-anim-js — pull request #12 by shans (2012-11-27 11:39:08+00:00)
Title: Implement pause & provide test.

Note that we shouldn't merge this until a bug is filed on the spec (w3.org bugzilla is currently down):

the locallyPaused property of TimedItem includes the following text:

3. The next step depends on the current value of locallyPaused as follows,
If locallyPaused is true,
Record the current value of currentTime as pause start time.
If locallyPaused is false,
Set the stored value of timeDrift to the result of evaluating effective parent time - startTime - pause start time.

The comparison values here for locallyPaused are backwards (i.e. if locallyPaused is _false_ then pause start time should be set to the current value of currentTime).