<?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>141023</bug_id>
          
          <creation_ts>2015-01-28 19:17:14 -0800</creation_ts>
          <short_desc>WebKit incorrectly treats unitless &quot;0&quot; in -webkit-animation value as &quot;animation-delay&quot;, instead of &quot;animation-iteration-count&quot;</short_desc>
          <delta_ts>2022-10-01 18:12:56 -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>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</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>1</everconfirmed>
          <reporter name="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1065131</commentid>
    <comment_count>0</comment_count>
      <attachid>245599</attachid>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2015-01-28 19:17:14 -0800</bug_when>
    <thetext>Created attachment 245599
testcase 1

STR:
 1. Load attached testcase.

EXPECTED RESULTS:
 Lime background on div.

ACTUAL RESULTS:
 Red background on div.


Firefox 35 gives me EXPECTED RESULTS.
These webkit-based browsers on Ubuntu 14.10 give me ACTUAL RESULTS:
 - epiphany-browser 3.10.3, using libwebkit2gtk-3.0-25
 - Midori 0.4.3, not sure what webkit version

DISCUSSION:
The testcase has:
  -webkit-animation: fadeIn 1s ease both 0;
  animation:         fadeIn 1s ease both 0;

It seems that webkit is parsing the final &quot;0&quot; there as a valid &lt;time&gt; and hence using it as an &quot;animation-delay&quot; value. However, it&apos;s not a valid &lt;time&gt; -- CSS &lt;time&gt; values require units. So it should instead be interpreted as an &quot;animation-iteration-count&quot; value, and be interpreted to mean that the animation shouldn&apos;t play (or should freeze at its first frame).

See https://code.google.com/p/chromium/issues/detail?id=453182 for corresponding blink bug, with more discussion of the spec &amp; how &lt;time&gt; requires units. (particularly comments number 6 and 7 there.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1902678</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-10-01 18:12:56 -0700</bug_when>
    <thetext>I am not able to reproduce this bug in Safari 16 and this shows &quot;lime&quot; color background, which is expected. I am going to mark this as &quot;RESOLVED CONFIGURATION CHANGED&quot;. Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>245599</attachid>
            <date>2015-01-28 19:17:14 -0800</date>
            <delta_ts>2015-01-28 19:17:14 -0800</delta_ts>
            <desc>testcase 1</desc>
            <filename>animation-iteration-count-testcase.html</filename>
            <type>text/html</type>
            <size>398</size>
            <attacher name="Daniel Holbert">dholbert</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KQC13ZWJraXQta2V5ZnJhbWVzIGZhZGVJbnsKICAwJXsg
YmFja2dyb3VuZDogbGltZSB9CjEwMCV7IGJhY2tncm91bmQ6IHJlZCAgfQp9CkBrZXlmcmFtZXMg
ZmFkZUluewogIDAleyBiYWNrZ3JvdW5kOiBsaW1lIH0KMTAwJXsgYmFja2dyb3VuZDogcmVkICB9
Cn0KCi5mYWRlSW57CiAgLXdlYmtpdC1hbmltYXRpb246IGZhZGVJbiAxcyBlYXNlIGJvdGggMDsK
ICBhbmltYXRpb246ICAgICAgICAgZmFkZUluIDFzIGVhc2UgYm90aCAwOwoKfQo8L3N0eWxlPgo8
ZGl2IGNsYXNzPSJmYWRlSW4iPkkgc2hvdWxkIGhhdmUgYSBsaW1lIGJhY2tncm91bmQuCiAgQW5k
IEkgc2hvdWxkIGRlZmluaXRlbHkgKm5vdCogaGF2ZSBhIHJlZCBiYWNrZ3JvdW5kLjwvZGl2Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>