<?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>171030</bug_id>
          
          <creation_ts>2017-04-19 19:19:36 -0700</creation_ts>
          <short_desc>CSS transition delayed for elements transitioning text properties</short_desc>
          <delta_ts>2023-05-10 12:40:54 -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>Mac</rep_platform>
          <op_sys>macOS 10.12</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>https://jsfiddle.net/sowteck9/4/</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>bertzhang</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1298962</commentid>
    <comment_count>0</comment_count>
      <attachid>307540</attachid>
    <who name="">bertzhang</who>
    <bug_when>2017-04-19 19:19:36 -0700</bug_when>
    <thetext>Created attachment 307540
Initial demo of bug (bugged in WebKit, works in FireFox)

When using jQuery to toggle a class for an element (activated by clicking anywhere in the JSFiddle), certain conditions will cause the timing of a CSS transition to be delayed.

In the attached demo (https://jsfiddle.net/sowteck9/4/), the &lt;p&gt;&apos;s should transition together and immediately.

However, the second &lt;p&gt;&apos;s transition is delayed. Commenting out the styling for .first or setting all values to a default value (i.e. inherit, 1em, currentColor, normal, etc.) will cause both &lt;p&gt;&apos;s to be delayed by 1s. The same thing happens with any font-relative length value besides rem (i.e. em, ex, ch, ic, lh, rlh) the property font-size. Commenting out the inner &lt;div&gt; (but not its inner HTML) will cause the bug to not reproduce either.

I have tried the CSS properties color, font-size, letter-spacing, and opacity. Opacity does not trigger the bug, which makes me think that it might be specific to text properties.

I have not tried using vanilla JavaScript (as opposed to jQuery) to reproduce the bug yet.

This bug occurs in Chrome 58.0.3029.81 (64-bit), Safari 10.1 (12603.1.30.0.34), WebKit 10.1 (12603.1.30.0.34, r215523), and Opera 44.0.2510.1218. This bug does not occur in Firefox 53.0. These browsers were run on macOS Sierra 10.12.4 64-bit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1299093</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2017-04-20 04:14:42 -0700</bug_when>
    <thetext>I think we have another bug on this same issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954452</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2023-05-10 12:40:54 -0700</bug_when>
    <thetext>We behave the same as Chrome here, but Firefox animates both &lt;p&gt; together.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>307540</attachid>
            <date>2017-04-19 19:19:36 -0700</date>
            <delta_ts>2017-04-20 04:14:53 -0700</delta_ts>
            <desc>Initial demo of bug (bugged in WebKit, works in FireFox)</desc>
            <filename>file_171030.txt</filename>
            <type>text/plain</type>
            <size>32</size>
            <attacher>bertzhang</attacher>
            
              <data encoding="base64">aHR0cHM6Ly9qc2ZpZGRsZS5uZXQvc293dGVjazkvNC8=
</data>

          </attachment>
      

    </bug>

</bugzilla>