Status: FAIL | Duration: 11ms | Subtests: 0/1 | Open test on wpt.live | Open ref on wpt.live | wpt.fyi
/css/css-anchor-position/anchor-scroll-position-try-015.tentative.html
<!DOCTYPE html> <html class="reftest-wait"> <title>Scrolling further up shouldn't trigger the anchored element to grow.</title> <link rel="help" href="https://drafts.csswg.org/css-anchor-position/#position-try-fallbacks"> <link rel="match" href="anchor-scroll-position-try-015-ref.html"> <script src="/common/reftest-wait.js"></script> <script src="/common/rendering-utils.js"></script> <style> #anchor { anchor-name: --a; margin-top: 200px; width: 100px; height: 100px; background: blue; } #anchored { position: absolute; position-anchor: --a; position-area: top center; position-try-fallbacks: flip-block; width: 100%; height: 100%; min-height: 100px; background: green; } </style> <div style="position:relative; width:200px; height:300px;"> <div id="scroller" style="overflow:scroll; scrollbar-width:none; width:100%; height:100%;"> <div id="anchor"></div> <div style="width:1000px; height:1000px;"></div> <div id="anchored"></div> </div> </div> <script> window.addEventListener("load", async () => { scroller.scrollTop = 150; await waitForAtLeastOneFrame(); scroller.scrollTop = 200; await waitForAtLeastOneFrame(); takeScreenshot(); }); </script> </html>
/css/css-anchor-position/anchor-scroll-position-try-015-ref.html
<!DOCTYPE html> <div style="width:100px; height:100px; background:blue;"></div> <div style="width:100px; height:150px; background:green;"></div>