<?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>229408</bug_id>
          
          <creation_ts>2021-08-23 04:54:54 -0700</creation_ts>
          <short_desc>Element rendered in the wrong place after sibling causes some layout changes</short_desc>
          <delta_ts>2021-08-24 20:42:09 -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>Compositing</component>
          <version>Safari Technology Preview</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</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>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tomas Carnecky">tomc</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>koivisto</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>1786393</commentid>
    <comment_count>0</comment_count>
    <who name="Tomas Carnecky">tomc</who>
    <bug_when>2021-08-23 04:54:54 -0700</bug_when>
    <thetext>See this Codesandbox example: https://zmslt.csb.app

 - Note the magenta box in the center bottom of the screen
 - Click on the image (to enlarge it, it simply removes the explicit width/height on the img)
 - Notice how the magenta box shifts to the top left.

Safari Technology Preview, Release 130 (Safari 15.0, WebKit 16612.1.26.1.5)

It works correctly when you:

 - comment out the &apos;inset: 0;&apos; line in .overlay
 - comment out the &apos;display: flex;&apos; line in .overlay
 - comment out the &apos;overflow: auto;&apos; line in .content
 - comment out the &apos;flex: 100% 0 1;&apos; line in .content</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1786843</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-08-24 11:31:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/82301706&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1787072</commentid>
    <comment_count>2</comment_count>
    <who name="alan">zalan</who>
    <bug_when>2021-08-24 20:42:09 -0700</bug_when>
    <thetext>This looks like a composition/painting issue on the fixed element (offsetTop/Left returns the correct value and toggling composition borders fixes the issue).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>