<?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>279516</bug_id>
          
          <creation_ts>2024-09-11 08:21:31 -0700</creation_ts>
          <short_desc>[css-transitions] `transition-behavior: allow-discrete` may not start a transition for a custom property</short_desc>
          <delta_ts>2024-09-18 15:55:33 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://github.com/web-platform-tests/wpt/pull/48115</see_also>
          <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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Antoine Quint">graouts</reporter>
          <assigned_to name="Antoine Quint">graouts</assigned_to>
          <cc>graouts</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2059296</commentid>
    <comment_count>0</comment_count>
      <attachid>472524</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-11 08:21:31 -0700</bug_when>
    <thetext>Created attachment 472524
Test

Consider the attached test case which does the following:

    const target = document.body;
    target.style.setProperty(&quot;--foo&quot;, &quot;10&quot;);
    getComputedStyle(target).getPropertyValue(&quot;--foo&quot;);
    target.style.transition = &quot;--foo 1s allow-discrete&quot;;
    target.style.setProperty(&quot;--foo&quot;, &quot;20&quot;);

This does not yield a transition. I believe this is because we enter the `transitionPropertiesContainAll` code path under `Styleable::updateCSSTransitions()` which fails to account for custom properties, or at least non-registered properties.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2059297</commentid>
    <comment_count>1</comment_count>
      <attachid>472525</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-11 08:22:00 -0700</bug_when>
    <thetext>Created attachment 472525
Test with `transition-property: all`

Another failing test case, likely failing for the same reason.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2059298</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-11 08:24:40 -0700</bug_when>
    <thetext>&quot;Test&quot; only works in Firefox Nightly. The other test fails in Chrome, Firefox and Safari.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2059305</commentid>
    <comment_count>3</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-09-11 09:02:41 -0700</bug_when>
    <thetext>&lt;rdar://problem/135805387&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2059306</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-11 09:08:02 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/33470</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2059380</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-11 12:24:13 -0700</bug_when>
    <thetext>Committed 283498@main (ca687c87a080): &lt;https://commits.webkit.org/283498@main&gt;

Reviewed commits have been landed. Closing PR #33470 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2059623</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2024-09-12 01:16:37 -0700</bug_when>
    <thetext>Submitted web-platform-tests pull request: https://github.com/web-platform-tests/wpt/pull/48115</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2061239</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2024-09-18 15:55:33 -0700</bug_when>
    <thetext>Committed 283286.73@safari-7620-branch (2d811327a267): &lt;https://commits.webkit.org/283286.73@safari-7620-branch&gt;

Reviewed commits have been landed. Closing PR #1822 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>472524</attachid>
            <date>2024-09-11 08:21:31 -0700</date>
            <delta_ts>2024-09-11 08:21:31 -0700</delta_ts>
            <desc>Test</desc>
            <filename>css-transition-behavior-allow-discrete-with-custom-property.html</filename>
            <type>text/html</type>
            <size>426</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CjxtZXRhIGNoYXJzZXQ9IlVU
Ri04Ij4KPC9oZWFkPgo8Ym9keT4KPC9ib2R5Pgo8c2NyaXB0PgoKY29uc3QgdGFyZ2V0ID0gZG9j
dW1lbnQuYm9keTsKdGFyZ2V0LnN0eWxlLnNldFByb3BlcnR5KCItLWZvbyIsICIxMCIpOwpnZXRD
b21wdXRlZFN0eWxlKHRhcmdldCkuZ2V0UHJvcGVydHlWYWx1ZSgiLS1mb28iKTsKdGFyZ2V0LnN0
eWxlLnRyYW5zaXRpb24gPSAiLS1mb28gMXMgYWxsb3ctZGlzY3JldGUiOwp0YXJnZXQuc3R5bGUu
c2V0UHJvcGVydHkoIi0tZm9vIiwgIjIwIik7CmNvbnN0IHRyYW5zaXRpb24gPSBkb2N1bWVudC5n
ZXRBbmltYXRpb25zKClbMF07CmRvY3VtZW50LndyaXRlKHRyYW5zaXRpb24gPyAiUEFTUyIgOiAi
RkFJTCIpOwoKPC9zY3JpcHQ+CjwvaHRtbD4K
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>472525</attachid>
            <date>2024-09-11 08:22:00 -0700</date>
            <delta_ts>2024-09-11 08:22:00 -0700</delta_ts>
            <desc>Test with `transition-property: all`</desc>
            <filename>css-transition-property-all-and-transition-behavior-allow-discrete-with-custom-property.html</filename>
            <type>text/html</type>
            <size>465</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGxhbmc9ImVuIj4KPGhlYWQ+CjxtZXRhIGNoYXJzZXQ9IlVU
Ri04Ij4KPC9oZWFkPgo8Ym9keT4KPC9ib2R5Pgo8c2NyaXB0PgoKY29uc3QgdGFyZ2V0ID0gZG9j
dW1lbnQuYm9keTsKdGFyZ2V0LnN0eWxlLnRyYW5zaXRpb25EdXJhdGlvbiA9ICIxcyI7CnRhcmdl
dC5zdHlsZS50cmFuc2l0aW9uQmVoYXZpb3IgPSAiYWxsb3ctZGlzY3JldGUiOwp0YXJnZXQuc3R5
bGUuc2V0UHJvcGVydHkoIi0tZm9vIiwgIjEwIik7CmdldENvbXB1dGVkU3R5bGUodGFyZ2V0KS5n
ZXRQcm9wZXJ0eVZhbHVlKCItLWZvbyIpOwp0YXJnZXQuc3R5bGUuc2V0UHJvcGVydHkoIi0tZm9v
IiwgIjIwIik7CmNvbnN0IHRyYW5zaXRpb24gPSBkb2N1bWVudC5nZXRBbmltYXRpb25zKClbMF07
CmRvY3VtZW50LndyaXRlKHRyYW5zaXRpb24gPyAiUEFTUyIgOiAiRkFJTCIpOwoKPC9zY3JpcHQ+
CjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>