<?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>199404</bug_id>
          
          <creation_ts>2019-07-02 07:31:53 -0700</creation_ts>
          <short_desc>Transition of max size of block in container with position leaves positioned children with animation rendered in wrong position</short_desc>
          <delta_ts>2026-01-12 09:04:58 -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 12</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Timo Kalliomäki">timoka10+webkit-bugzilla</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dino</cc>
    
    <cc>graouts</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1549553</commentid>
    <comment_count>0</comment_count>
      <attachid>373319</attachid>
    <who name="Timo Kalliomäki">timoka10+webkit-bugzilla</who>
    <bug_when>2019-07-02 07:31:53 -0700</bug_when>
    <thetext>Created attachment 373319
Minimal non-working example

This is a regression. It was not seen on Safari 11 or macOS Safari 12.0, but it is present on iOS Safari 12 and macOS Safari 12.1.1.

When there is a combination of
1) an outer container with a position (relative, absolute),
2) multiple inner containers with transitioned max-height changes being resized simultaneously, and
3) children in these inner containers with a position and animation (animation does not need to change position)
said children will be left rendered in the wrong position. This is a rendering issue, not a box model one, as e.g. the dev tools highlighting appears in the location expected for the child, and a re-render will move it to the correct position.

Attached is a minimal non-working example. Clicking on the button “switch” will simultaneously set the initial (red) inner container to max-height: 0px and the replacing (green) inner container to max-height: 200px. The expected outcome, which can be seen on other browsers, is that in the end a child square is positioned where the initial child square first was. What happens instead is that the child square is left in the wrong position, mostly obscured. Removing the blinking opacity animation with the “Clear animations” button will re-render the child square in the correct position.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1549577</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-07-02 08:48:40 -0700</bug_when>
    <thetext>&lt;rdar://problem/52525498&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1910593</commentid>
    <comment_count>2</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-11-05 17:47:37 -0700</bug_when>
    <thetext>I am able to reproduce this in Safari Technology Preview 158 and get blinking inner circle and also it leaves artefact on the bottom while Chrome Canary 109 works smoothly in the attached testcase.

-&gt; Click &quot;Switch&quot; after loading testcase to reproduce this issue.

Thanks!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>373319</attachid>
            <date>2019-07-02 07:31:53 -0700</date>
            <delta_ts>2019-07-02 07:31:53 -0700</delta_ts>
            <desc>Minimal non-working example</desc>
            <filename>transition-positions.xhtml</filename>
            <type>application/xhtml+xml</type>
            <size>1973</size>
            <attacher name="Timo Kalliomäki">timoka10+webkit-bugzilla</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbCB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94aHRt
bCIgbGFuZz0iZW4iIHhtbDpsYW5nPSJlbiI+CgogIDxoZWFkPgogICAgPHRpdGxlPkV4YW1wbGUg
b2YgZWxlbWVudCBwb3NpdGlvbnMgb24gdHJhbnNpdGlvbnM8L3RpdGxlPgogICAgPHN0eWxlPgog
ICAgICAvKjwhW0NEQVRBWyovCiAgICAgICNhYnNvbHV0ZS1wYXJlbnQgewogICAgICAgIHBvc2l0
aW9uOiBhYnNvbHV0ZTsKCXdpZHRoOiAzMDBweDsKICAgICAgfQoKICAgICAgLmFjY29yZGlvbi10
YWIgewogICAgICAgIG92ZXJmbG93OiBoaWRkZW47CiAgICAgICAgdHJhbnNpdGlvbjogbWF4LWhl
aWdodCAwLjZzIGVhc2Utb3V0OwogICAgICB9CiAgICAgICNmaXJzdCB7CiAgICAgICAgbWF4LWhl
aWdodDogMjAwcHg7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogcmVkOwogICAgICB9CiAgICAg
ICNzZWNvbmQgewogICAgICAgIG1heC1oZWlnaHQ6IDBweDsKICAgICAgICBiYWNrZ3JvdW5kLWNv
bG9yOiBncmVlbjsKICAgICAgfQoKICAgICAgLnRhYi1vdXRlci1jb250ZW50IHsKICAgICAgICBw
b3NpdGlvbjogcmVsYXRpdmU7CiAgICAgICAgaGVpZ2h0OiAxMDBweDsKICAgICAgICB3aWR0aDog
NTAlOwogICAgICB9CgogICAgICBAa2V5ZnJhbWVzIHB1bHNlIHsKICAgICAgICAwJSB7b3BhY2l0
eTogMC40O30KICAgICAgICA1MCUge29wYWNpdHk6IDAuNjU7fQogICAgICAgIDEwMCUge29wYWNp
dHk6IDAuNDt9CiAgICAgIH0KICAgICAgLnNxdWFyZSB7CiAgICAgICAgd2lkdGg6IDI0cHg7CiAg
ICAgICAgaGVpZ2h0OiAyNHB4OwogICAgICAgIHBvc2l0aW9uOiBhYnNvbHV0ZTsKICAgICAgICB0
b3A6IDBweDsKICAgICAgICByaWdodDogLTEycHg7CiAgICAgICAgYmFja2dyb3VuZC1jb2xvcjog
d2hpdGU7CiAgICAgICAgYW5pbWF0aW9uOiBwdWxzZSAxLjVzIGluZm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ogICAgICA8L2Rpdj4KICAgICAgPGRpdiBpZD0ic2Vjb25kIiBjbGFzcz0iYWNjb3JkaW9uLXRh
YiI+CiAgICAgICAgPGRpdiBjbGFzcz0idGFiLW91dGVyLWNvbnRlbnQiPgogICAgICAgICAgPGRp
diBjbGFzcz0ic3F1YXJlIj4KICAgICAgICAgIDwvZGl2PgogICAgICAgIDwvZGl2PgogICAgICA8
L2Rpdj4KICAgIDwvZGl2PgogIDwvYm9keT4KCjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>