<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>284551</bug_id>
          
          <creation_ts>2024-12-12 07:30:24 -0800</creation_ts>
          <short_desc>[scroll-animations] support attachment range keywords in keyframes (CSS and JS API)</short_desc>
          <delta_ts>2025-02-20 01:51:43 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Animations</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>286920</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>284532</blocked>
    
    <blocked>284533</blocked>
    
    <blocked>284538</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2081180</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-12-12 07:30:24 -0800</bug_when>
    <thetext>The @keyframes rule in CSS and the `offset` property in the Web Animations JS API are extended to support attachment range keywords for Scroll-driven Animations.

The spec at https://drafts.csswg.org/scroll-animations-1/#named-range-keyframes extends `&lt;keyframe-selector&gt;` to contain `&lt;timeline-range-name&gt; &lt;percentage&gt;`. The spec at https://drafts.csswg.org/web-animations-2/#keyframe-offset-type details how this works with the Web Animations JavaScript API.

This feature affects several known demos of Scroll-driven Animations:

- https://scroll-driven-animations.style/demos/contact-list/css/ (bug 284532)
- https://scroll-driven-animations.style/demos/contact-list/waapi/ (bug 284533)
- https://codepen.io/utilitybend/pen/RwqBymL (bug 284538)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081181</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-12-12 07:31:06 -0800</bug_when>
    <thetext>&lt;rdar://problem/141358265&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2081516</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-12-13 08:46:26 -0800</bug_when>
    <thetext>Here are two tests specifically testing this on the Web Animations JavaScript API side:

- scroll-animations/view-timelines/get-keyframes-with-timeline-offset.html
- scroll-animations/view-timelines/timeline-offset-in-keyframe.html

And here are tests for the CSS @keyframes rule:

- scroll-animations/css/merge-timeline-offset-keyframes.html
- scroll-animations/css/timeline-offset-in-keyframe-change-timeline.tentative.html
- scroll-animations/css/timeline-offset-keyframes-hidden-subject.html
- scroll-animations/css/timeline-offset-keyframes-with-document-timeline.html
- scroll-animations/css/view-timeline-keyframe-boundary-interpolation.html
- scroll-animations/css/animation-timeline-view-functional-notation.tentative.html
- scroll-animations/css/timeline-range-name-offset-in-keyframes.tentative.html
- scroll-animations/css/named-range-keyframes-with-document-timeline.tentative.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2096293</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-02-20 01:51:43 -0800</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 286920 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>