Re: [csswg-drafts] [css-animations] The "via" keyframe selector (#6151)

I must admit, I did not consider the order as I rarely ever make use of this feature, but in the case that the "absolute" keyframes selectors aren't ordered properly, there are two things we could logically do.
- a `via` keyframe selector is only valid when its lower bounding absolute keyframe is less than its upper bounding absolute keyframe (where "lower" and "upper" refer to their position, not their value), or
- a `via` keyframe selector always interpolates between its nearest bounding absolute keyframe selectors, regardless of their value.

So let's say we have
```
@keyframes blink {
    90% { opacity: 1; }
    via { opacity: 0; }
    0% { opacity: 1; }
}
```
Then the first rule would say "this `via` keyframe selector is invalid", dropping that keyframe block. The second would instead say "this is fine" and take the `via` to mean `45%`. I'm not sure which of these is preferable to the general public, but I'd prefer the second for flexibility and consistency. All in all the order of the keyframes doesn't seem too much of an issue.

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


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

Received on Monday, 29 March 2021 06:52:43 UTC