<?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>241570</bug_id>
          
          <creation_ts>2022-06-13 14:29:01 -0700</creation_ts>
          <short_desc>WebKit doesn&apos;t re-resolve em-valued properties to account for font-size transitions</short_desc>
          <delta_ts>2023-01-07 02:08:26 -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>Animations</component>
          <version>Safari 15</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>210963</dup_id>
          
          <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="Daniel Holbert">dholbert</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>emilio</cc>
    
    <cc>graouts</cc>
    
    <cc>graouts</cc>
    
    <cc>heycam</cc>
    
    <cc>koivisto</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1875614</commentid>
    <comment_count>0</comment_count>
      <attachid>460214</attachid>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2022-06-13 14:29:01 -0700</bug_when>
    <thetext>Created attachment 460214
testcase 1

STR:
1. Load attached testcase.
2. Hover the orange area.

ACTUAL RESULTS:
The orange area&apos;s width suddenly jumps to twice its original width.

EXPECTED RESULTS:
The orange area&apos;s width should grow gradually (in response to the font-size transition).


NOTES:
The element here has a width specified in `em` units, and hovering triggers a change to `font-size` which triggers a CSS transition.  That should add a value for `font-size` to the cascade, per https://www.w3.org/TR/css-transitions-1/#application , which should in turn influence the resolution of `em`-valued properties.

Safari 15.5 gives ACTUAL RESULTS.
Firefox and Chrome give EXPECTED RESULTS.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875620</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2022-06-13 14:40:39 -0700</bug_when>
    <thetext>Note: I ran across this bug due to a bug report in Firefox, which turned out to be the reporter inadvertently depending on this WebKit bug.  (Chrome matches Firefox&apos;s behavior FWIW.)

That report was https://bugzilla.mozilla.org/show_bug.cgi?id=1774014, which I closed as invalid since Firefox and Chrome are pretty-clearly following the spec.

WebKit happens to match the reporter&apos;s expectations over there, but I&apos;m pretty sure that&apos;s just an accident and is essentially due to this bug here.  If/when you fix this bug, I suspect you&apos;ll match Firefox and Chrome on the jsfiddle and attached testcase on https://bugzilla.mozilla.org/show_bug.cgi?id=1774014 .</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875754</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-06-14 05:41:03 -0700</bug_when>
    <thetext>&lt;rdar://problem/95105214&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875756</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-14 06:03:55 -0700</bug_when>
    <thetext>Thanks for filing this Daniel. Do you know whether this is already covered by WPT?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875759</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-14 06:10:24 -0700</bug_when>
    <thetext>I think this might be covered by the css/css-transitions/transition-base-response-*.html tests that WebKit is the sole engine to fail :(</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875822</commentid>
    <comment_count>5</comment_count>
      <attachid>460235</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2022-06-14 11:00:01 -0700</bug_when>
    <thetext>Created attachment 460235
CSS Animation of font-size combined with relative width value

Adding another test where we use a CSS Animation to animate font-size. In that example, the em-based width is never updated.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1875875</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Holbert">dholbert</who>
    <bug_when>2022-06-14 14:52:14 -0700</bug_when>
    <thetext>(In reply to Antoine Quint from comment #3)
&gt; Thanks for filing this Daniel.

Thanks for taking a look!

&gt; Do you know whether this is already covered
&gt; by WPT?

I don&apos;t know offhand, no (though it sounds like you might&apos;ve subsequently found some related WPT tests).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1923781</commentid>
    <comment_count>7</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2023-01-07 02:08:26 -0800</bug_when>
    <thetext>This was fixed in &lt;https://commits.webkit.org/258514@main&gt;

*** This bug has been marked as a duplicate of bug 210963 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>460214</attachid>
            <date>2022-06-13 14:29:01 -0700</date>
            <delta_ts>2022-06-13 14:29:01 -0700</delta_ts>
            <desc>testcase 1</desc>
            <filename>test-transition.html</filename>
            <type>text/html</type>
            <size>388</size>
            <attacher name="Daniel Holbert">dholbert</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KLnRlc3QgewogICAgdHJhbnNpdGlvbi1kdXJhdGlvbjog
MnM7CiAgICB0cmFuc2l0aW9uLXByb3BlcnR5OiBmb250LXNpemU7CiAgICBmb250LXNpemU6IDIw
cHg7CiAgICB3aWR0aDogOGVtOyAvKiBOT1RFOiBlbSB1bml0cywgd2hvc2UgcmVzb2x2ZWQgdmFs
dWUgc2hvdWxkIHRyYWNrIHRoZSB0cmFuc2l0aW9uZWQgJ2ZvbnQtc2l6ZScgKi8KICAgIGJhY2tn
cm91bmQ6IG9yYW5nZTsKIH0KCi50ZXN0OmhvdmVyIHsKICAgIGZvbnQtc2l6ZTogNDBweDsKfQo8
L3N0eWxlPgpUaGUgb3JhbmdlIGFyZWEncyB3aWR0aCBzaG91bGQgZ3JvdyBncmFkdWFsbHkgd2hl
biB5b3UgaG92ZXIgaXQ6CjxkaXYgY2xhc3M9InRlc3QiPkhvdmVyPC9kaXY+Cg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>460235</attachid>
            <date>2022-06-14 11:00:01 -0700</date>
            <delta_ts>2022-06-14 11:00:01 -0700</delta_ts>
            <desc>CSS Animation of font-size combined with relative width value</desc>
            <filename>font-size-animation-with-width-em-value.html</filename>
            <type>text/html</type>
            <size>374</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxzdHlsZT4KLnRlc3QgewogICAgZm9udC1zaXplOiAyMHB4OwogICAg
d2lkdGg6IDhlbTsgLyogTk9URTogZW0gdW5pdHMsIHdob3NlIHJlc29sdmVkIHZhbHVlIHNob3Vs
ZCB0cmFjayB0aGUgdHJhbnNpdGlvbmVkICdmb250LXNpemUnICovCiAgICBiYWNrZ3JvdW5kOiBv
cmFuZ2U7Cn0KCi50ZXN0OmhvdmVyIHsKICAgIGFuaW1hdGlvbjogZ3JvdyAyczsKfQoKQGtleWZy
YW1lcyBncm93IHsKICAgIHRvIHsgZm9udC1zaXplOiA0MHB4IH0KfQoKPC9zdHlsZT4KVGhlIG9y
YW5nZSBhcmVhJ3Mgd2lkdGggc2hvdWxkIGdyb3cgZ3JhZHVhbGx5IHdoZW4geW91IGhvdmVyIGl0
Ogo8ZGl2IGNsYXNzPSJ0ZXN0Ij5Ib3ZlcjwvZGl2Pgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>