<?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>190179</bug_id>
          
          <creation_ts>2018-10-01 17:32:11 -0700</creation_ts>
          <short_desc>css animation-duration ignored on hover, but respected on viewport change</short_desc>
          <delta_ts>2022-02-01 03:12:17 -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>CSS</component>
          <version>Safari 11</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.14</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=181242</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="cdaringe">cdaringe</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1465327</commentid>
    <comment_count>0</comment_count>
    <who name="cdaringe">cdaringe</who>
    <bug_when>2018-10-01 17:32:11 -0700</bug_when>
    <thetext>similar symptoms, different causality report: https://bugs.webkit.org/show_bug.cgi?id=181242

safari ignores animation-duration using the :hover psuedo-class when overwriting an existing duration property.

this is easily demonstrable as shown here: https://youtu.be/F7RpRXddUfI

observe in the video:

- an initial, 240s animation-duration (e.g. slow rotation of the image)
- selection of the :hover class, setting animation-duration to 1.5s.  the rotation speed _does not change_ to a fast rotation.
- toggling away and back from the affected tab. suddenly, the animation-duration is honored, and fast rotation is achieved
- ...the exercise repeats with another value</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466735</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2018-10-05 11:27:37 -0700</bug_when>
    <thetext>Could you provide a reduction?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466737</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2018-10-05 11:29:28 -0700</bug_when>
    <thetext>&lt;rdar://problem/45048659&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466915</commentid>
    <comment_count>3</comment_count>
    <who name="cdaringe">cdaringe</who>
    <bug_when>2018-10-06 21:25:06 -0700</bug_when>
    <thetext>ya, sure thing.  here you go: https://codepen.io/cdaringe/pen/gBwZKR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1466916</commentid>
    <comment_count>4</comment_count>
    <who name="cdaringe">cdaringe</who>
    <bug_when>2018-10-06 21:26:54 -0700</bug_when>
    <thetext>in its totality:

&lt;div class=&apos;box&apos; /&gt;

.box {
  animation-duration: 60000ms;
  animation-iteration-count: infinite;
  animation-name: spin;
  animation-timing-function: linear;
  width: 100px;
  height: 100px;
  background-color: black;
}

.box:hover {
  animation-duration: 1500ms;
  background-color: pink;
}

@keyframes spin {
  from {transform:rotate(0deg);}
  to {transform:rotate(360deg);}
}</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1835892</commentid>
    <comment_count>5</comment_count>
    <who name="Sam Sneddon [:gsnedders]">gsnedders</who>
    <bug_when>2022-02-01 03:12:17 -0800</bug_when>
    <thetext>This appears to work nowadays.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>