<?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>239357</bug_id>
          
          <creation_ts>2022-04-14 15:43:53 -0700</creation_ts>
          <short_desc>Element with &quot;position: sticky&quot; doesn&apos;t stick if parent element has &quot;contain: paint&quot;</short_desc>
          <delta_ts>2022-04-14 19:29:06 -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>Safari 15</version>
          <rep_platform>Mac (Intel)</rep_platform>
          <op_sys>macOS 12</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>238016</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Lu">danilu</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>simon.fraser</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1861651</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Lu">danilu</who>
    <bug_when>2022-04-14 15:43:53 -0700</bug_when>
    <thetext>Reproduction Steps:
1. Go to https://codepen.io/dl1644/pen/zYpmLpd in Safari 15.4 (macOS 12.3.1)
2. Attempt to scroll the green/yellow/red div to the right
3. Note that the green &quot;sticky&quot; div is scrolled out of view
4. Repeat steps 1 and 2 in Chrome(100) and Firefox (99). Note that the green &quot;sticky&quot; div stays in view
5. Return to your Safari codepen tab and remove &quot;contain: paint&quot; from the &quot;#row&quot; CSS
6. Attempt to scroll the green/yellow/red div. Note that the green &quot;sticky&quot; div stays in view now but the yellow &quot;float&quot; div now spills out the bottom of the red div


Started occurring with Safari 15.4 from what I can tell. Unsure if this counts as a regression since &quot;contains&quot; is newly supported in Safari 15.4 but the sticky behavior worked just fine in at least Safari 14 and below.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1861690</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2022-04-14 19:29:06 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 238016 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>