<?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>113230</bug_id>
          
          <creation_ts>2013-03-25 12:11:21 -0700</creation_ts>
          <short_desc>CSS properties with &lt;time&gt; parameters may not use unitless 0</short_desc>
          <delta_ts>2022-07-13 14:28:00 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=203484</see_also>
          <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>0</everconfirmed>
          <reporter name="Robert McKee">robertjunk</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>ericwilligers</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>862961</commentid>
    <comment_count>0</comment_count>
    <who name="Robert McKee">robertjunk</who>
    <bug_when>2013-03-25 12:11:21 -0700</bug_when>
    <thetext>According to the CSS 3 specification, you may not use a unitless 0 for parameters that take a &lt;time&gt;, and the current webkit engine incorrectly parses unitless 0 parameters.

Running the following script:
&lt;script&gt;
        $(function () {
            $(&apos;body&apos;).append(&apos;&lt;div&gt;&apos;).attr(&apos;id&apos;, &apos;results&apos;);
            var tests = [&quot;unset - garbage 1s 1s 1s&quot;, &quot;0&quot;, &quot;1s&quot;,
                &quot;0 0&quot;, &quot;0 1s&quot;, &quot;1s 0&quot;, &quot;1s 1s&quot;,
                &quot;0 0 0&quot;, &quot;0 0 1s&quot;, &quot;0 1s 0&quot;, &quot;0 1s 1s&quot;, &quot;1s 0 0&quot;, &quot;1s 0 1s&quot;, &quot;1s 1s 0&quot;, &quot;1s 1s 1s&quot;];

            tests.forEach(function(test) {
                var div = $(&apos;&lt;div&gt;&apos;).css(&apos;animation-duration&apos;, &apos;2s&apos;).css(&apos;animation-delay&apos;, &apos;3s&apos;).css(&apos;animation-iteration-count&apos;, 4).css(&quot;animation&quot;, test);
                $(&apos;#results&apos;).append(&quot;&lt;br /&gt;Test: &quot; + test + &quot; &quot;);
                if (div.css(&apos;animation-duration&apos;) == &apos;2s&apos;) {
                    $(&apos;#results&apos;).append(&apos;INVALID&lt;br/&gt;&apos;);
                } else {
                    $(&apos;#results&apos;).append(&apos;VALID&lt;br/&gt;&apos;);
                    var styleProps = [&quot;animation&quot;, &quot;animation-duration&quot;, &quot;animation-delay&quot;, &quot;animation-iteration-count&quot;];
                    styleProps.forEach(function(prop) {
                        $(&apos;#results&apos;).append(prop + &apos;:&apos; + div.css(prop) + &apos;&lt;br /&gt;&apos;);
                    });
                }
            });
        });
    &lt;/script&gt;
Should yield the following:
Test: unset - garbage 1s 1s 1s INVALID

Test: 0 VALID
animation:0s ease 0s normal none 0 none
animation-duration:0s
animation-delay:0s
animation-iteration-count:0

Test: 1s VALID
animation:1s ease 0s normal none 1 none
animation-duration:1s
animation-delay:0s
animation-iteration-count:1

Test: 0 0 INVALID

Test: 0 1s VALID
animation:1s ease 0s normal none 0 none
animation-duration:1s
animation-delay:0s
animation-iteration-count:0

Test: 1s 0 VALID
animation:1s ease 0s normal none 0 none
animation-duration:1s
animation-delay:0s
animation-iteration-count:0

Test: 1s 1s VALID
animation:1s ease 1s normal none 1 none
animation-duration:1s
animation-delay:1s
animation-iteration-count:1

Test: 0 0 0 INVALID

Test: 0 0 1s INVALID

Test: 0 1s 0 INVALID

Test: 0 1s 1s VALID
animation:1s ease 1s normal none 0 none
animation-duration:1s
animation-delay:1s
animation-iteration-count:0

Test: 1s 0 0 INVALID

Test: 1s 0 1s VALID
animation:1s ease 1s normal none 0 none
animation-duration:1s
animation-delay:1s
animation-iteration-count:0

Test: 1s 1s 0 VALID
animation:1s ease 1s normal none 0 none
animation-duration:1s
animation-delay:1s
animation-iteration-count:0

Test: 1s 1s 1s INVALID
However, it is giving the following result:
Test: unset - garbage 1s 1s 1s INVALID

Test: 0 VALID
animation:0ms
animation-duration:0ms
animation-delay:initial
animation-iteration-count:initial

Test: 1s VALID
animation:1s
animation-duration:1s
animation-delay:initial
animation-iteration-count:initial

Test: 0 0 VALID
animation:0ms 0ms
animation-duration:0ms
animation-delay:0ms
animation-iteration-count:initial

Test: 0 1s VALID
animation:0ms 1s
animation-duration:0ms
animation-delay:1s
animation-iteration-count:initial

Test: 1s 0 VALID
animation:1s 0ms
animation-duration:1s
animation-delay:0ms
animation-iteration-count:initial

Test: 1s 1s VALID
animation:1s 1s
animation-duration:1s
animation-delay:1s
animation-iteration-count:initial

Test: 0 0 0 VALID
animation:0ms 0ms 0
animation-duration:0ms
animation-delay:0ms
animation-iteration-count:0

Test: 0 0 1s INVALID

Test: 0 1s 0 VALID
animation:0ms 1s 0
animation-duration:0ms
animation-delay:1s
animation-iteration-count:0

Test: 0 1s 1s INVALID

Test: 1s 0 0 VALID
animation:1s 0ms 0
animation-duration:1s
animation-delay:0ms
animation-iteration-count:0

Test: 1s 0 1s INVALID

Test: 1s 1s 0 VALID
animation:1s 1s 0
animation-duration:1s
animation-delay:1s
animation-iteration-count:0

Test: 1s 1s 1s INVALID</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1472350</commentid>
    <comment_count>1</comment_count>
    <who name="Eric Willigers">ericwilligers</who>
    <bug_when>2018-10-26 00:37:17 -0700</bug_when>
    <thetext>Web Platform Tests
https://wpt.fyi/results/css/css-animations/parsing/animation-delay-invalid.html
https://wpt.fyi/results/css/css-animations/parsing/animation-duration-invalid.html
https://wpt.fyi/results/css/css-transitions/parsing/transition-delay-invalid.html

Microsoft reports a use count near 0%
https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/animation-delay/
https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/animation-duration/
https://developer.microsoft.com/en-us/microsoft-edge/platform/usage/css/transition-duration/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1883331</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-07-13 14:28:00 -0700</bug_when>
    <thetext>Safari 15+ handles these cases properly.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>