<?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>214352</bug_id>
          
          <creation_ts>2020-07-15 07:21:41 -0700</creation_ts>
          <short_desc>CSS Transition of inherited value sequenced across children elements</short_desc>
          <delta_ts>2026-03-27 12:30:30 -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>Safari 13</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>macOS 10.15</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://github.com/w3c/csswg-drafts/issues/5324</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Critical</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Meir Cohen">meirkoen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>kizmarh</cc>
    
    <cc>koivisto</cc>
    
    <cc>myfonj</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1671731</commentid>
    <comment_count>0</comment_count>
    <who name="Meir Cohen">meirkoen</who>
    <bug_when>2020-07-15 07:21:41 -0700</bug_when>
    <thetext>Transition of inherited value, such as `text-indent`, in nested elements, is happening in sequence and not simultaneously with the transition of the parent value.

Here is a codepen demonstrates the issue: https://codepen.io/meirkoen/pen/mdVGRYj?editors=1100
On the left side you can see 3 variants of the issue.
On the right side you can see how it can be fixed - by specifying the values on the children as well.

I have tried to search the [css-transitions] https://drafts.csswg.org/css-transitions/ spec for a definition of this behaviour but I did not see one.

I&apos;ve also opened an issue in csswg-drafts (https://github.com/w3c/csswg-drafts/issues/5324) to make sure that it&apos;s not an ambiguity in the spec at this section https://drafts.csswg.org/css-transitions/#starting. 

I also confirmed that it works well in Firefox</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1673807</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-07-22 07:22:18 -0700</bug_when>
    <thetext>&lt;rdar://problem/65935293&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1676795</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-07-31 05:48:05 -0700</bug_when>
    <thetext>Pretty amazing, thanks for filing Meir! There are transition events fired on each frame here.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1676796</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-07-31 05:59:56 -0700</bug_when>
    <thetext>This issues reproduces with a Safari build that predates the new Web Animations engine, this is likely a bug in the CSS code that generates the Animation objects fed to Style::TreeResolver::createAnimatedElementUpdate().</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1676797</commentid>
    <comment_count>4</comment_count>
      <attachid>405683</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-07-31 06:09:13 -0700</bug_when>
    <thetext>Created attachment 405683
Reduction

I&apos;ve reduced the test further to just a color transition on &lt;p&gt; and nested &lt;span&gt; without any text-ident or display styles.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1676798</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2020-07-31 06:09:42 -0700</bug_when>
    <thetext>This test only works correctly in Firefox, both Chrome and Safari have the wrong behavior of staggering the animations across elements.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2076528</commentid>
    <comment_count>6</comment_count>
    <who name="Roman Komarov">kizmarh</who>
    <bug_when>2024-11-20 15:01:48 -0800</bug_when>
    <thetext>This might be a duplicate of https://bugs.webkit.org/show_bug.cgi?id=46041</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>405683</attachid>
            <date>2020-07-31 06:09:13 -0700</date>
            <delta_ts>2020-07-31 06:09:13 -0700</delta_ts>
            <desc>Reduction</desc>
            <filename>214352.html</filename>
            <type>text/html</type>
            <size>226</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PHN0eWxlPgoKICAgIHAsIHAgc3BhbiB7CiAgICAgICAgdHJhbnNpdGlvbjogY29sb3IgMXM7CiAg
ICB9CgogICAgcDpob3ZlciB7CiAgICAgICAgY29sb3I6IGdyZWVuOwogICAgfQoKPC9zdHlsZT4K
CjxwPgogICAgQUFBQUFBQQogICAgPHNwYW4+CiAgICAgICAgQkJCQkJCQgogICAgICAgIDxzcGFu
PgogICAgICAgICAgICBDQ0NDQ0NDCiAgICAgICAgPC9zcGFuPgogICAgPC9zcGFuPgo8L3A+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>