Re: [fxtf-drafts] [motion-1] the description of contain flag in ray() function (#363)

You haven't mentioned the direction of the ray. I'll assume a multiple of 90 degrees, e.g. `0deg`.

> Assume the path length is long enough to enclose all the box

By path length, think of circle radius. Perhaps different spec wording is needed.

At offset-distance 0%, any radius of `calc(sqrt(2) * 50px)` or more encloses the box. We do not move the box.

At offset-distance 100%, we move the box backwards slightly more than 50px so that the entire box (all 4 corners, not just the center points of edges) fits within the circle. For example, using a 5-12-13 triangle, if the path length was 130px, we would move the box backwards 60px.

> Assume the path length is not long enough to enclose the box

At offset-distance 0%, we would increase the radius and not move the box.

At offset-distance 100%, the minimal increase to the path length is to `calc(sqrt(2) * 50px)`. Now an offset-distance (0px) exists such the box fits entirely within the circle.

> If the offset-anchor is outside the box, e.g. 200% -300%

I used https://petrogale-purpureicollis.appspot.com/ray/ to generate SVG images for the spec.

You can change offset-path to have `contain` and change offset-anchor from `auto` to `200% -300%`, and Plot to generate an SVG.


-- 
GitHub Notification of comment by ewilligers
Please view or discuss this issue at https://github.com/w3c/fxtf-drafts/issues/363#issuecomment-521061842 using your GitHub account

Received on Wednesday, 14 August 2019 00:51:28 UTC