[csswg-drafts] [css-easings-2] When does a `linear()` includes a point with a null `input`? (#9289)

cdoublev has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-easings-2] When does a `linear()` includes a point with a null `input`? ==
https://drafts.csswg.org/css-easing-2/#create-a-linear-easing-function

  > 5. For runs of `items` in `function`’s points that have a null `input`, [...]

Can you please add an example when this happens?

<details>
  <summary>I cannot figure it out.</summary>

```js
function createLinearEasingFunction(list) {
  const points = []
  const fn = { points }
  let largestInput = -Infinity
  list.forEach((stop, index) => {
    const [progress, time] = stop
    const point = { input: null, output: progress }
    points.push(point)
    if (isOmitted(time)) {
      if (index === 0) {
        point.input = 0
        largestInput = 0
      } else {
        point.input = Math.max(1, largestInput)
      }
      return
    }
    const [start, end] = time
    largestInput = point.input = Math.max(start / 100, largestInput)
    if (end) {
      const input = largestInput = Math.max(end / 100, largestInput)
      const extraPoint = { input, output: progress }
      points.push(extraPoint)
    }
  })
}
```
</details>

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9289 using your GitHub account


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

Received on Friday, 1 September 2023 06:34:37 UTC