<?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>140560</bug_id>
          
          <creation_ts>2015-01-16 12:56:42 -0800</creation_ts>
          <short_desc>Paint order problem scrolling a relative-position element over a fixed-position element</short_desc>
          <delta_ts>2022-07-24 13:54:17 -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>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>CONFIGURATION CHANGED</resolution>
          
          
          <bug_file_loc>InRadar</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alan Stearns">stearns</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>ap</cc>
    
    <cc>bfulgham</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1061916</commentid>
    <comment_count>0</comment_count>
      <attachid>244792</attachid>
    <who name="Alan Stearns">stearns</who>
    <bug_when>2015-01-16 12:56:42 -0800</bug_when>
    <thetext>Created attachment 244792
test file

A relative-position element passing over a fixed-position element during scrolling paints in the wrong order. In the test file, the red element should always display above the yellow element. If you load the file in Safari 7 and scroll, the yellow obscures the red. If you reload the file with the scroll position set where the elements overlap, the problem is fixed. If you open or close the web inspector when the elements overlap, the problem is fixed.

Does not happen in Safari 6, Firefox or Chrome. Can&apos;t reproduce in the view on codepen.io.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061927</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-01-16 13:04:09 -0800</bug_when>
    <thetext>This happens because our compositing overlap testing isn&apos;t re-run on scrolling, and doesn&apos;t account for the fact that scrolling will &quot;smear&quot; the fixed thing down the page.

One way to fix this would be for the compositing overlap code to compute a &quot;smeared&quot; rect for the fixed thing.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1061934</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2015-01-16 13:08:57 -0800</bug_when>
    <thetext>rdar://problem/15849697</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886368</commentid>
    <comment_count>3</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2022-07-24 10:31:48 -0700</bug_when>
    <thetext>All browsers match in the above test case:

1) Red &lt;div&gt; is below yellow &lt;div&gt;
2) When scrolling &apos;red&apos; &lt;div&gt; go above yellow and out of view but yellow remain fixed on the webpage.

I tested this across Chrome Canary 106, Firefox Nightly 104 and Safari 15.6 on macOS 12.5, I am not sure about the web-spec but this is what I am experiencing in all browsers.

Just wanted to share updated results. Thanks!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1886406</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2022-07-24 13:54:17 -0700</bug_when>
    <thetext>All browsers match &gt; Config changed</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>244792</attachid>
            <date>2015-01-16 12:56:42 -0800</date>
            <delta_ts>2015-01-16 12:56:42 -0800</delta_ts>
            <desc>test file</desc>
            <filename>safari-z-index.html</filename>
            <type>text/html</type>
            <size>677</size>
            <attacher name="Alan Stearns">stearns</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sIGNsYXNzPSJodG1sIiBsYW5nPSJlbi1VUyI+CiAgPGhlYWQ+
CiAgICA8bWV0YSBodHRwLWVxdWl2PSJDb250ZW50LXR5cGUiIGNvbnRlbnQ9InRleHQvaHRtbDtj
aGFyc2V0PVVURi04Ii8+CiAgICA8dGl0bGU+U2Nyb2xsaW5nIHBhaW50IHByb2JsZW08L3RpdGxl
PgogICAgCiAgICA8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgogICAgICBib2R5CiAgICAgIHsKICAg
ICAgICBtaW4taGVpZ2h0OiAyMDAwcHg7CiAgICAgIH0KCiAgICAgIC5maXhlZAogICAgICB7CiAg
ICAgICAgcG9zaXRpb246IGZpeGVkOwogICAgICAgIHdpZHRoOiAxMDBweDsKICAgICAgICBoZWln
aHQ6IDEwMHB4OwogICAgICAgIGJhY2tncm91bmQtY29sb3I6IHllbGxvdzsKICAgICAgfQogICAg
CiAgICAgIC5jb250ZW50CiAgICAgIHsKICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiByZWQ7CiAg
ICAgICAgcG9zaXRpb246IHJlbGF0aXZlOwogICAgICAgIHotaW5kZXg6IDI7CiAgICAgICAgdG9w
OiAxNTBweDsKICAgICAgfQogICAgPC9zdHlsZT4KICA8L2hlYWQ+CgogIDxib2R5PgogICAgICA8
ZGl2IGNsYXNzPSJmaXhlZCI+PC9kaXY+CiAgICAgIDxkaXYgY2xhc3M9ImNvbnRlbnQiPgogICAg
ICAgIFNIT1VMRCBHTyBBQk9WRQogICAgICA8L2Rpdj4KICA8L2JvZHk+CjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>