- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Wed, 30 Mar 2022 16:54:00 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `Percentages vs Pixels for Scroll Timeline Values`, and agreed to the following: * `RESOLVED: Use percentages for scroll-timeline values` <details><summary>The full IRC log of that discussion</summary> <fantasai> subtopic: Percentages vs Pixels for Scroll Timeline Values<br> <fantasai> github: https://github.com/w3c/csswg-drafts/issues/7045#issuecomment-1081276755<br> <fantasai> flackr: For scroll-linked animations, now the question is, what is the internal time: is it percentages or lengths?<br> <TabAtkins> q+<br> <fantasai> flackr: This would specifically be for the output<br> <TabAtkins> ack fantasai<br> <Zakim> fantasai, you wanted to ask about birtles' opinion<br> <Rossen_> ack fantasai<br> <fantasai> flackr: This is just for what we report to the developer; can take any type as input regardless<br> <fantasai> flackr: arguments for each are in the issue, but will try to summarize<br> <fantasai> flackr: pixel-based is very analogous to the way time works for regular animations<br> <fantasai> flackr: scroll-timeline is animating over a length<br> <fantasai> flackr: whereas for percentages, these are pretty much exactly what the animation progress is, which is how devs specify keyframes<br> <fantasai> flackr: and is closer to intersection-observer API as it relates to view timelines<br> <bmathwig> q<br> <fantasai> TabAtkins: Given resolution to the previous issue, is this just about how we should interpret a double in this case or can we return a typed value, and then is it a question of which typed value to return?<br> <bmathwig> q+<br> <fantasai> flackr: question of which typed value to return<br> <Rossen_> ack tantek<br> <fantasai> flackr: for setters, we could even throw for a double, since time values don't belong in a scroll animation<br> <Rossen_> ack TabAtkins<br> <fantasai> TabAtkins: in that case, I suggest if the progress value changes as the scrollable area changes ...<br> <fantasai> TabAtkins: if you freeze an animation, and you change the scrollable area size, the time value should stay ocnstant<br> <fantasai> flackr: standard behavior is ... mapping to progress<br> <fantasai> flackr: if a change in the scrollable length causes a change to the animation progress, using percentages the current time will also change to reflect that change in animation progress, but a length will not<br> <fantasai> flackr: because would have the same absolute scroll position<br> <Rossen_> q?<br> <fantasai> fantasai: I think that's a pretty convincing argument<br> <Rossen_> ack bmathwig<br> <fantasai> bmathwig: Just building on what Tab was saying, what are the artifacts that would occur should the case of an infinite scroller and timeline being used, and animation jumps back to a previous keyframe<br> <fantasai> bmathwig: would that cause a disruption in the continuity and disruption / artifact ?<br> <fantasai> flackr: I don't think our decision here would affect that. We can accept either type as input<br> <fantasai> flackr: the current behavior for most of the animation APIs is that you specify keyframes in percentage progress, so until we expand that to express absolute positions in time, won't have discontinuity<br> <fantasai> flackr: regardless of whether output value is pixels or percentages<br> <fantasai> bmathwig: OK, then percent is interesting... I don't have an opinion, don't have enough context.<br> <fantasai> Rossen_: OK, where does that leave us?<br> <fantasai> flackr: Seems we have slight preference for percentages, because maps directly to animation progress<br> <fantasai> flackr: if there's no objections, I would resolve on that<br> <fantasai> flackr: I think we can support both types in terms of specifying values<br> <fantasai> flackr: which should make it easy for devs to work with this<br> <fantasai> Rossen_: Should we then try to resolve on percentages?<br> <bmathwig> +1 for percentages<br> <fantasai> Rossen_: Any objections for using percentages for scroll timeline values?<br> <fantasai> RESOLVED: Use percentages for scroll-timeline values<br> </details> -- GitHub Notification of comment by css-meeting-bot Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/7045#issuecomment-1083384745 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 30 March 2022 16:54:32 UTC