<?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>279013</bug_id>
          
          <creation_ts>2024-09-02 03:53:17 -0700</creation_ts>
          <short_desc>Transitioning Registered Custom Properties with discretely animatable syntaxes cause a transition loop</short_desc>
          <delta_ts>2024-09-03 02:30:05 -0700</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>Other</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>279012</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bramus">bramus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>koivisto</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2056976</commentid>
    <comment_count>0</comment_count>
    <who name="Bramus">bramus</who>
    <bug_when>2024-09-02 03:53:17 -0700</bug_when>
    <thetext>(This bug was discovered while building `@bramus/style-observer`, a library that responds to changes in computed styles. For this it relies on CSS Transitions and `transition-behavior: allow-discrete`. See https://brm.us/style-observer for details about this library.)

Transitioning Registered Custom Properties with discretely animatable syntaxes cause a transition loop

- Demo: https://allow-discrete-bugs.netlify.app/safari/registered-discrete-loop/ – the custom properties `--variable1` and `--variable2` are registered with @property. The former as a `&lt;number&gt;` and the latter as a `&lt;custom-ident&gt;`
- Expected behavior: When clicking the `--variable2` button, the output should change and the transition should have triggered only once.
- Actual Behavior: While the output does change, the transition is repeatedly triggered. You can verify this by checking the console, which logs `&quot;_handleUpdate&quot;` on `transitionstart`. This does not happen when clicking the `--variable1` button.
- Noteworthy: When changing `--variable2` to a syntax of `&lt;string&gt;` it also doesn’t work, which leads me to believe that this behavior shows for all syntaxes that cannot be interpolated.

Tested in Safari Technology Preview 202</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2056989</commentid>
    <comment_count>1</comment_count>
    <who name="Bramus">bramus</who>
    <bug_when>2024-09-02 05:26:24 -0700</bug_when>
    <thetext>Correction: the `--variable2` property is registered as `*`.

When having it set up as a `&lt;custom-ident&gt;` (with a proper `initial-value`) it works fine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057014</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-02 07:06:41 -0700</bug_when>
    <thetext>Hi Bramus, thanks for the report. I&apos;ll probably get to it myself eventually, but could you perhaps make a reduction that does not involve any third-party script? It could help reduce the complexity and help identifying the source of the bug. Thank you.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2057190</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-03 02:30:05 -0700</bug_when>
    <thetext>This is the same underlying issue as bug 279012.

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

    </bug>

</bugzilla>