[svgwg] Confusion about the description of this algorithm listed in SMIL Animation doc. (#838)

krave1986 has just created a new issue for https://github.com/w3c/svgwg:

== Confusion about the description of this algorithm listed in SMIL Animation doc. ==
SMIL Animation spec:
https://www.w3.org/TR/smil-animation/

I quote the algorithm here:

> Let **o** be the offset value of a given begin value,
> **d** be the associated simple duration, 
> **AD** be the associated active duration.
> Let **rAt** be the time when the begin time becomes resolved.
> Let **rTo** be the resolved sync-base or event-base time without the offset
> Let **rD** be **rTo** - **rAt**.  If **rD** < **0** then **rD** is set to **0**.
>  
> If **AD** is indefinite, it compares greater than any value of **o** or **ABS(o)**.
> **REM( x, y )** is defined as **x - (y * floor( x/y ))**. 
> If y is indefinite, **REM( x, y )** is just **x**.
> 
> Let **mb** = **REM( ABS(o), d )** - **rD**
> 
> If **ABS(o) >= AD** then the element does not begin.
> Else if **mb >= 0** then the media begins at **mb**.
> Else the media begins at **mb + d**.

I have some questions to hopefully find some relief here:

1. In which situations, **the time when the begin time becomes resolved** and **the resolved sync-base or event-base time without the offset** are not same? Please note **without the offset**.
2. Is **offset** included in **simple duration** or not?
3. May I that **REM( x, y )** can be defined as **x % y** ?
4. Can anyone helps to explain the reasons for last 3 sentences? I can not get the point here.

Thank you very much in advance! I really not able to figure that out by myself.

Please view or discuss this issue at https://github.com/w3c/svgwg/issues/838 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Thursday, 15 April 2021 20:32:41 UTC