diff options
Diffstat (limited to 'testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-update-006-ref.html')
-rw-r--r-- | testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-update-006-ref.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-update-006-ref.html b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-update-006-ref.html new file mode 100644 index 0000000000..c7fbb57e76 --- /dev/null +++ b/testing/web-platform/tests/css/css-anchor-position/reference/anchor-scroll-update-006-ref.html @@ -0,0 +1,34 @@ +<!DOCTYPE html> +<style> + #cb { + position: absolute; + inset: 0; + } + #scroller { + margin-top: 300px; + overflow-y: scroll; + height: 100px; + } + #spacer { height: 300px; } + #anchor { anchor-name: --a; } + #anchored { + position: absolute; + width: 100px; + height: 100px; + background-color: green; + top: 100px; + left: 0; + } +</style> +<div id="cb"> + <div id="scroller"> + <div id="anchor"></div> + <div id="spacer"></div> + </div> + <div id="anchored"></div> +</div> +<script> +const scroller = document.getElementById('scroller'); +scroller.scrollTop = 200; +</script> + |