W3C home > Mailing lists > Public > public-fxtf-archive@w3.org > May 2019

[fxtf-drafts] [motion-1] Make sure the used offset distance is positive in closed loop (#339)

From: Boris via GitHub <sysbot+gh@w3.org>
Date: Tue, 14 May 2019 23:35:22 +0000
To: public-fxtf-archive@w3.org
Message-ID: <issues.opened-444171278-1557876921-sysbot+gh@w3.org>
BorisChiou has just created a new issue for https://github.com/w3c/fxtf-drafts:

== [motion-1] Make sure the used offset distance is positive in closed loop ==
We calculate the `used offset distance` by the steps defined in [1]. For a closed loop, the spec says:
> Let used offset distance be equal to offset distance modulus the total length of the path. If the total length of the path is 0, used offset distance is also 0.

Perhaps it'd be better to mention that the `used offset distance` should be equal to or larger than 0 in this case. (Though this may just depend on the implementation detail.)
Note: Chromium did it [2], and Firefox will follow this idea as well [3].

[1] https://drafts.fxtf.org/motion-1/#calculating-the-computed-distance-along-a-path
[2] https://cs.chromium.org/chromium/src/third_party/blink/renderer/core/style/computed_style.cc?l=1207-1208&rcl=ebc261685e926af961bb12a34cd04ae7dec35182
[3] https://bugzilla.mozilla.org/show_bug.cgi?id=1429299

cc @birtles @ericwilligers 

Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/339 using your GitHub account
Received on Tuesday, 14 May 2019 23:35:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 14 May 2019 23:35:25 UTC