<?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>294902</bug_id>
          
          <creation_ts>2025-06-24 07:12:15 -0700</creation_ts>
          <short_desc>mada.com.sa: broken animation for &quot;timeline&quot; compared to Chrome</short_desc>
          <delta_ts>2025-06-24 07:51:07 -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>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>284527</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="Antoine Quint">graouts</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>graouts</cc>
    
    <cc>koivisto</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2125472</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:12:15 -0700</bug_when>
    <thetext>Steps to reproduce:

1. Go to - https://www.mada.com.sa
2. Scroll till you see timeline of 1993 — 2022
3. Notice the animation + scrollbar

This should not cause the page to jump or it shouldn’t be this jumpy (page jump is more visible, if you are on end of page - footer area)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125473</commentid>
    <comment_count>1</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:12:24 -0700</bug_when>
    <thetext>rdar://145878894</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125477</commentid>
    <comment_count>2</comment_count>
      <attachid>475639</attachid>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:18:01 -0700</bug_when>
    <thetext>Created attachment 475639
Reduced test case

The content can be reduced to something as simple as:

```
&lt;style&gt;

h1 {
    margin-top: 0;
    animation: shrink 1s linear;
}

@keyframes shrink {
    from { font-size: 100px }
}
        
&lt;/style&gt;
&lt;h1&gt;Hello World!&lt;/h1&gt;
```

Somehow the `margin-top` style seems to be ignored and the element top left corner moves as the `font-size` animates. This does not occur in Chrome and Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125481</commentid>
    <comment_count>3</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:24:35 -0700</bug_when>
    <thetext>Note that &lt;h1&gt; has the following style declared in the UA stylesheet:

```
h1 {
    display: block;
    font-size: 2em;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 0px;
    font-weight: bold;
}
```

It appears to me that there may be a cascade issue here and that the margin value used here is the `rem` value  specified in the UA stylesheet instead of the `0` value set in the page&apos;s `h1` rule.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125485</commentid>
    <comment_count>4</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:44:19 -0700</bug_when>
    <thetext>Huh, this does not reproduce in STP 122!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125486</commentid>
    <comment_count>5</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:44:55 -0700</bug_when>
    <thetext>Sorry, meant to say it reproduces in STP 122 but not on a ToT build. So this appears to have been fixed recently, will find the exact change that fixed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2125487</commentid>
    <comment_count>6</comment_count>
    <who name="Antoine Quint">graouts</who>
    <bug_when>2025-06-24 07:51:07 -0700</bug_when>
    <thetext>This progressed with 296304@main, the fix for bug 284527.

*** This bug has been marked as a duplicate of bug 284527 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="1"
              ispatch="0"
              isprivate="0"
          >
            <attachid>475639</attachid>
            <date>2025-06-24 07:18:01 -0700</date>
            <delta_ts>2025-06-24 07:37:06 -0700</delta_ts>
            <desc>Reduced test case</desc>
            <filename>bug-293731.html</filename>
            <type>text/html</type>
            <size>1171</size>
            <attacher name="Antoine Quint">graouts</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICAgIDxzdHlsZT4KCiAgICAgICAgYm9keSB7
CiAgICAgICAgICAgIG1hcmdpbjogMDsKICAgICAgICB9CgogICAgICAgICNyb290IHsKICAgICAg
ICAgICAgd2lkdGg6IDgwMHB4OwogICAgICAgICAgICBoZWlnaHQ6IDIwMHB4OwogICAgICAgICAg
ICBvdmVyZmxvdzogaGlkZGVuOwogICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7CiAg
ICAgICAgfQoKICAgICAgICBAcHJvcGVydHkgLS12YXJpYWJsZS10cmFuc2xhdGUteCB7CiAgICAg
ICAgICAgIHN5bnRheDogIjxsZW5ndGgtcGVyY2VudGFnZT4iOwogICAgICAgICAgICBpbmhlcml0
czogZmFsc2U7CiAgICAgICAgICAgIGluaXRpYWwtdmFsdWU6IDBweDsKICAgICAgICB9CgogICAg
ICAgIEBrZXlmcmFtZXMgbW92ZSB7CiAgICAgICAgICAgIGZyb20sIHRvIHsgLS12YXJpYWJsZS10
cmFuc2xhdGUteDogLTgwMHB4IH0KICAgICAgICB9CgogICAgICAgICNjb250YWluZXIgewogICAg
ICAgICAgICB3aWR0aDogMjA0OXB4OyAvKiBpc3N1ZSBkaXNhcHBlYXJzIGF0IDIwNDhweCwgd2hp
Y2ggaXMgdGlsaW5nIHRocmVzaG9sZCAqLwogICAgICAgICAgICBoZWlnaHQ6IDEwMCU7CiAgICAg
ICAgICAgIGJhY2tncm91bmQtY29sb3I6IHJlZDsKCiAgICAgICAgICAgIHRyYW5zZm9ybTogdHJh
bnNsYXRlWCh2YXIoLS12YXJpYWJsZS10cmFuc2xhdGUteCkpOwogICAgICAgICAgICB3aWxsLWNo
YW5nZTogdHJhbnNmb3JtOyAvKiB0aGlzIGJ1ZyBvbmx5IGhhcHBlbnMgd2hlbiB0aGUgY29udGFp
bmVyIGlzIGNvbXBvc2l0ZWQgKi8KICAgICAgICAgICAgYW5pbWF0aW9uOiBtb3ZlIDEwMDBzOwog
ICAgICAgIH0KCiAgICAgICAgI2NvbnRlbnQgewogICAgICAgICAgICBwb3NpdGlvbjogYWJzb2x1
dGU7CiAgICAgICAgICAgIHdpZHRoOiAxMDAlOwogICAgICAgICAgICBoZWlnaHQ6IDEwMCU7CiAg
ICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IGdyZWVuOwogICAgICAgIH0KCiAgICA8L3N0eWxl
Pgo8L2hlYWQ+Cjxib2R5PgogICAgPGRpdiBpZD0icm9vdCI+CiAgICAgICAgPGRpdiBpZD0iY29u
dGFpbmVyIj4KICAgICAgICAgICAgPGRpdiBpZD0iY29udGVudCI+PC9kaXY+CiAgICAgICAgPC9k
aXY+CiAgICA8L2Rpdj4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>