Re: [csswg-drafts] reconsider name of frames() timing function

Maybe `inclusive` and `exclusive` instead of `inside` and `outside`?  They are more academic terms, but are how you would actually describe a range that may or may not include the endpoints.

E.g., for a transition from 0 to 10, `steps(5, inclusive)` divides the transition into five equal-sized steps between 0 and 10, inclusive.  While `steps(5, exclusive)` divides the transition into five equal-sized steps, exclusive of the initial and final values.

It doesn't help solve the naming confusion with `start` and `end` & people thinking that means "including the start/end value" instead of "making the switch at the start/end of the time interval".  But I don't think it makes it much worse, either.

PS, 
Whatever you call it, the outside/exclusive/clip option should only be restricted to n ≥ 1.  I would expect that steps(1, exclusive) for a transition from 0 to 10 would mean that the value would be 5 for the length of the transition.

-- 
GitHub Notification of comment by AmeliaBR
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1301#issuecomment-309619231 using your GitHub account

Received on Tuesday, 20 June 2017 01:35:15 UTC