Re: [csswg-drafts] [css-easing-2] Linear easing function requires at least two points? (#10580)

Nah. Similar to gradients, you can supply two positions for a single stop, so a grammatical requirement like that would prevent authors from writing some otherwise reasonable things. (It would allow `linear(0 0%, 0 100%)`, but disallow the identical-meaning `linear(0 0% 100%)`.)

However, the text as currently written does fail if you provide a single stop, whether you give it two %s or not. ("create a linear easing function" explicitly fails if there is only a single stop, regardless of whether it's doubled or not; "calculate linear easing output" implicitly fails with an OOB access if there's only a single stop (not doubled).

The first failure should get fixed; there's nothing wrong it conceptually. The second should also be fixed, just to avoid grammar oddities, the same as how we just resolved to allow single-stop gradients; there's a trivial behavior for it. I'll propose some edits.

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


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

Received on Friday, 19 July 2024 21:50:51 UTC