<?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>310239</bug_id>
          
          <creation_ts>2026-03-18 19:51:44 -0700</creation_ts>
          <short_desc>Fixed boxes anchored to children of sticky boxes should stick</short_desc>
          <delta_ts>2026-03-31 01:19:42 -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>Layout and Rendering</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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>
          
          <blocked>291856</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="fantasai">fantasai.bugs</reporter>
          <assigned_to name="fantasai">fantasai.bugs</assigned_to>
          <cc>bfulgham</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>2191556</commentid>
    <comment_count>0</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2026-03-18 19:51:44 -0700</bug_when>
    <thetext>Testcase: https://knowler.dev/demos/Ats2b5t?codepen


&lt;div id=&quot;sticky&quot;&gt;Sticky
  &lt;div id=&quot;anchor&quot;&gt;Anchor&lt;/div&gt;
  &lt;div id=&quot;anchored&quot; popover=&quot;auto&quot;&gt;Anchored&lt;/div&gt;
&lt;/div&gt;
&lt;div id=&quot;content&quot;&gt;&lt;/div&gt;
&lt;script&gt;
anchored.showPopover();
&lt;/script&gt;
&lt;style&gt;
#sticky {
	position: sticky;
	inset-block-start: 0;
}

#anchor {
	anchor-name: --anchor;
}

#anchored {
	position-anchor: --anchor;
	position-area: block-end span-inline-start;
	margin-block-start: 8px;
}

/* Presentation-only */

:root {
	color-scheme: dark;
	font-family: system-ui;
	background-image: linear-gradient(to bottom, RoyalBlue, MediumSeaGreen);
}

body {
	margin: 0;
}

#sticky {
	display: flex;
	justify-content: space-between;
	padding: 16px;
	background-color: DeepPink;
	font-weight: 600;
}

#content {
	block-size: 2000px;
}
&lt;/style&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2191557</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2026-03-18 19:51:51 -0700</bug_when>
    <thetext>&lt;rdar://problem/172884148&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2193983</commentid>
    <comment_count>2</comment_count>
      <attachid>478820</attachid>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2026-03-26 09:45:07 -0700</bug_when>
    <thetext>Created attachment 478820
simplified testcase</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2194985</commentid>
    <comment_count>3</comment_count>
    <who name="fantasai">fantasai.bugs</who>
    <bug_when>2026-03-29 21:32:02 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/61656</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195281</commentid>
    <comment_count>4</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-30 14:19:09 -0700</bug_when>
    <thetext>Committed 310255@main (344b0fc11db6): &lt;https://commits.webkit.org/310255@main&gt;

Reviewed commits have been landed. Closing PR #61656 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2195467</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2026-03-31 01:19:42 -0700</bug_when>
    <thetext>Committed 305413.601@safari-7624-branch (f0f99c394805): &lt;https://commits.webkit.org/305413.601@safari-7624-branch&gt;

Reviewed commits have been landed. Closing PR #4856 and removing active labels.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>478820</attachid>
            <date>2026-03-26 09:45:07 -0700</date>
            <delta_ts>2026-03-26 09:45:07 -0700</delta_ts>
            <desc>simplified testcase</desc>
            <filename>wpt.html</filename>
            <type>text/html</type>
            <size>744</size>
            <attacher name="fantasai">fantasai.bugs</attacher>
            
              <data encoding="base64">CjxkaXYgaWQ9InN0aWNreSI+U3RpY2t5CiAgPGRpdiBpZD0iY2hpbGQiPlN0aWNreSBDaGlsZDwv
ZGl2Pgo8L2Rpdj4KPGRpdiBjbGFzcz0iYW5jaG9yZWQgc3RpY2t5Ij5BbmNob3JlZCB0byBTdGlj
a3k8L2Rpdj4KPGRpdiBjbGFzcz0iYW5jaG9yZWQgc3RpY2t5LWNoaWxkIj5BbmNob3JlZCB0byBD
aGlsZDwvZGl2PgoKPHN0eWxlPgojc3RpY2t5IHsKICBwb3NpdGlvbjogc3RpY2t5OwogIGluc2V0
LWJsb2NrLXN0YXJ0OiAwOwogIGJhY2tncm91bmQ6IERlZXBQaW5rOwogIGJvcmRlcjogMTBweCBz
b2xpZCB5ZWxsb3c7CiAgYW5jaG9yLW5hbWU6IC0tc3RpY2t5Owp9CgojY2hpbGQgewogIGFuY2hv
ci1uYW1lOiAtLXN0aWNreS1jaGlsZDsKICBiYWNrZ3JvdW5kOiBibHVlOwogIG1hcmdpbi1sZWZ0
OiA1MCU7Cn0KCi5hbmNob3JlZCB7CiAgcG9zaXRpb246IGFic29sdXRlOwogIHBvc2l0aW9uLWFy
ZWE6IGJsb2NrLWVuZCBjZW50ZXI7CiAgYmFja2dyb3VuZDogYXF1YTsKfQouYW5jaG9yZWQuc3Rp
Y2t5IHsKICBwb3NpdGlvbi1hbmNob3I6IC0tc3RpY2t5Owp9Ci5hbmNob3JlZC5zdGlja3ktY2hp
bGQgewogIHBvc2l0aW9uLWFuY2hvcjogLS1zdGlja3ktY2hpbGQ7Cn0KCjpyb290IHsKICBiYWNr
Z3JvdW5kLWltYWdlOiBsaW5lYXItZ3JhZGllbnQodG8gYm90dG9tLCBSb3lhbEJsdWUsIE1lZGl1
bVNlYUdyZWVuKTsKICBwYWRkaW5nOiA0MHB4OwogIGJsb2NrLXNpemU6IDIwMCU7Cn0KCjwvc3R5
bGU+
</data>

          </attachment>
      

    </bug>

</bugzilla>