NEW310239
Top-level boxes anchored to sticky should stick
https://bugs.webkit.org/show_bug.cgi?id=310239
Summary Top-level boxes anchored to sticky should stick
fantasai
Reported 2026-03-18 19:51:44 PDT
Testcase: https://knowler.dev/demos/Ats2b5t?codepen <div id="sticky">Sticky <div id="anchor">Anchor</div> <div id="anchored" popover="auto">Anchored</div> </div> <div id="content"></div> <script> anchored.showPopover(); </script> <style> #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; } </style>
Attachments
Radar WebKit Bug Importer
Comment 1 2026-03-18 19:51:51 PDT
Note You need to log in before you can comment on or make changes to this bug.