- From: Antoine Quint via GitHub <sysbot+gh@w3.org>
- Date: Thu, 09 Jan 2025 14:42:06 +0000
- To: public-css-archive@w3.org
graouts has just created a new issue for https://github.com/w3c/csswg-drafts: == [web-animations-2] [scroll-animations] usage of timeline range offsets in the Web Animations API == The [Scroll-driven Animations](https://drafts.csswg.org/scroll-animations-1/) specification defines [Named Timeline Range Keyframe Selectors](https://drafts.csswg.org/scroll-animations-1/#named-range-keyframes) allowing specific portions of a scrollable area to be targeted while rendering animations. Specifically, the combination of a [`<timeline-range-name>`](https://drafts.csswg.org/scroll-animations-1/#typedef-timeline-range-name) and a `<length-percentage>` such as `cover 10%`. The Scroll-driven Animations specification discusses this only within the context of CSS-declared `@keyframes` rules, but the Web Animations specification does not discuss how such values can be used through the Web Animations API and the various methods it defines to consume keyframes: [`animate()`](https://drafts.csswg.org/web-animations-1/#dom-animatable-animate), [`setKeyframes()`](https://drafts.csswg.org/web-animations-1/#dom-keyframeeffect-setkeyframes) and the [`KeyframeEffect`](https://drafts.csswg.org/web-animations-1/#dom-keyframeeffect-keyframeeffect) constructor. It doesn't discuss either how such keyframe offsets would be dealt with in a call to [`getKeyframes()`](https://drafts.csswg.org/web-animations-1/#dom-keyframeeffect-getkeyframes). There are a fair few WPT tests related to this, too many to list here, so the Chrome team has given this some thinking and WebKit will be getting support for this in short order, but this entire area needs to be specified and the merits and the approach taken by the Chrome team need to be discussed. Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11467 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 9 January 2025 14:42:07 UTC