- From: yarusome via GitHub <sysbot+gh@w3.org>
- Date: Thu, 08 Jun 2023 01:19:27 +0000
- To: public-css-archive@w3.org
yarusome has just created a new issue for https://github.com/w3c/csswg-drafts: == [css-easing-2] Intended possibility of discontinuity of `linear()`? == [2.1.2 Parsing](https://drafts.csswg.org/css-easing-2/#linear-easing-function-parsing) ensures that points in `<linear-stop-list>` have (not necessarily strictly) increasing inputs. And in [2.1.4 Output of a linear easing function](https://drafts.csswg.org/css-easing-2/#linear-easing-function-output) (irrelevant steps omitted): > 2. Let *pointAIndex* be index of the last item in *points* with an input less than or equal to *inputProgress*, or 0 if there is no match. > > […] > > 4. Let *pointA* be *points*[pointAIndex]. > > 5. Let *pointB* be *points*[pointAIndex + 1]. > > […] Following these steps, `linear(0, 0.6 50%, 0.4 50%, 1)` produces a discontinuous piecewise linear function: ![example](https://github.com/w3c/csswg-drafts/assets/97945148/3e786d8f-410c-4bdd-aa36-6c545f2dfec5) Is this really intended by the spec? If so, I'll add an example in https://github.com/mdn/content/pull/27167. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/8933 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 8 June 2023 01:19:28 UTC