- From: CSS Meeting Bot via GitHub <sysbot+gh@w3.org>
- Date: Fri, 31 Jan 2025 22:48:02 +0000
- To: public-css-archive@w3.org
The CSS Working Group just discussed `[scroll-animations-1] Range for entire scroll range`, and agreed to the following:
* ``RESOLVED: Keyword is `scroll` ``
* `RESOLVED: It also applies to scroll timelines`
<details><summary>The full IRC log of that discussion</summary>
<emilio> bramus: when you are specifying a view timeline which you use for animation, and attach it to a range or sub-range<br>
<emilio> ... there's no way to specify the entire scroll range<br>
<emilio> ... we came up with a bunch of keywords<br>
<emilio> ... I think we settled on the world `scroll`<br>
<emilio> ... since then there were some more suggestions<br>
<emilio> ... like `fill` and `full-range`<br>
<emilio> ... we also want to make this do something for scroll timelines<br>
<emilio> ... to use this keywords in JS APIs<br>
<emilio> ... when specifying ranges<br>
<emilio> ... looking to adopt this keyword (personal preference being `scroll`) into the spec<br>
<flackr> +1<br>
<emilio> ... this would allow you to do animation-range: entry 0%, scroll 1000px<br>
<dbaron> Present-<br>
<emilio> ... so you can mix and match a range relative to the tracked subject and the second relative to the scroll range<br>
<astearns> ack fantasai<br>
<emilio> fantasai: so the scroll 1000px point might be before or after<br>
<emilio> bramus: if you overshoot it flips<br>
<emilio> fantasai: no going backwards<br>
<emilio> q+<br>
<fantasai> scribe+<br>
<astearns> ack emilio<br>
<emilio> bramus: consistent with explicit values<br>
<fantasai> scribe+ TabAtkins<br>
<TabAtkins> emilio: it woudl be well-defined if..<br>
<TabAtkins> emilio: %s also need to care about the scroll range changing<br>
<TabAtkins> bramus: if you use animation-range: 0% 100% on a scroll timeline, that's the same as animation-range: scroll 0% scroll 100%<br>
<TabAtkins> bramus: %s are calculated in smae manner<br>
<TabAtkins> emilio: as long as it's well-defined what happens when the scroll range changes (presuambly recompute on next frame), sounds good<br>
<emilio> scribe+<br>
<TabAtkins> astearns: i see we have a previous resolution on "add scroll, but bikeshed"<br>
<emilio> astearns: is the bikeshed just settling on scroll?<br>
<emilio> bramus: I think we settle on `scroll`<br>
<emilio> ... looking at the replies<br>
<astearns> `RESOLVED: add 'scroll' named range to view timelines, represents entire scroll range, bikeshed keyword in issue`<br>
<emilio> flackr: did a short survey<br>
<bramus> https://github.com/w3c/csswg-drafts/issues/9367#issuecomment-1904777189<br>
<emilio> PROPOSAL: the keyword is `scroll`<br>
<emilio> PROPOSAL: The keyword applies to scroll-timeline as well<br>
<emilio> fantasai: isn't it a no-op for scroll-timeline?<br>
<emilio> bramus: it becomes interesting in JS<br>
<flackr> q+<br>
<emilio> ... you pass an object into the range start property of the animation<br>
<emilio> ... so you specify an object and range, and the range is `scroll`<br>
<emilio> ydaniv: scroll timeline doesn't have range names<br>
<bramus> ```<br>
<bramus> anim.rangeStart: {<br>
<bramus> offset: CSS.px(100),<br>
<bramus> rangeName: 'none', // This needs to be `"none"`, but `none` is not defined in the spec as a valid `rangeName`.<br>
<bramus> },<br>
<bramus> ```<br>
<bramus> (replace none with scroll)<br>
<emilio> flackr: What this gives you is the ability to attach to a px offset<br>
<emilio> ... I suppose ranges have that anyways<br>
<emilio> ... nevermind<br>
<emilio> RESOLVED: Keyword is `scroll`<br>
<emilio> RESOLVED: It also applies to scroll timelines<br>
</details>
--
GitHub Notification of comment by css-meeting-bot
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9367#issuecomment-2628525742 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Friday, 31 January 2025 22:48:03 UTC