-
Notifications
You must be signed in to change notification settings - Fork 33
Modify fill mode to inherit from the parent #2
Conversation
The first patch in this series is covered by: The second patch about adding an auto fill mode is something we're waiting for Steve's return to discuss. |
Thanks Brian. A few comments ...
This is surprising, because the child doesn't support the (forward) fill mode being used by the parent. Compare the case where the model is sampled later such that the child is active: we would only evaluate the child if it used forwards fill like the parent. I suggest that we should only sample the child if it supports the fill mode currently being used by the parent. So in this example, we would only evaluate the child if it used fill both. WDYT? |
Thanks Steve for the detailed review, I'll follow up on Thursday. |
It's a good question, I need to think about it. My thought at the moment is that how it's currently defined is right (by accident mind you, not because I really though that case through). The reason is that by saying "fill: backwards" you're saying "Fill until I start (unless,of course, my ancestors say no)". So in that case the animation never starts so it keeps filling forever. I might not have quite understood though because you talked about the case where "the model is sampled later such that the child is active". Once we're sampling past the end time of the parent we're only ever going to pass the end time of the parent down. It's impossible to sample inside the child's active interval without moving the child in relation to the parent. But maybe I haven't understood? Nevertheless there's almost certainly something wrong with that non-normative description of fill modes as you pointed out. |
Hmm, I think the description of fill modes is partly correct: Two things that help explain it:
So you can fill even if you have no parent. You can also fill while you and your parent are in the active phase because somewhere up the tree there is a group in its after phase. If something up the tree is not either filling or in the active phase you won't have a local time so you won't fill. I think the description fails to capture that last bit. It should probably say, "When the timed item is in the after phase, or when the timed item is in the active phase but an ancestor is in its after phase, the timed item will produce the same transformed time value as the last moment is is scheduled to be in play." |
I've updated the spec with this description for now. Let me know what you think. |
|
Looks good, thanks |
The second commit, regarding auto fill mode, is now obsolete after this concept was added to the spec in https://dvcs.w3.org/hg/FXTF/rev/cb428dc9b757 Closing this pull request. |
No description provided.