diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-11-17 15:12:16 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-17 15:12:16 -0500 |
commit | d1db623dfc918796ebdfd213f00690cead4cd91a (patch) | |
tree | ee7a23b376fe0eb3677db59af1e6c2cd1a14092a /tests/wpt/web-platform-tests/css/css-scroll-anchoring/nested-overflow-subtree-layout-ref.html | |
parent | a7008d1cf71c6bcdf49ce41d45178a413199c837 (diff) | |
parent | e6e440683de2c29d482c3009a398c8b34edec7d9 (diff) | |
download | servo-d1db623dfc918796ebdfd213f00690cead4cd91a.tar.gz servo-d1db623dfc918796ebdfd213f00690cead4cd91a.zip |
Auto merge of #24761 - servo-wpt-sync:wpt_update_17-11-2019, r=jdm
Sync WPT with upstream (17-11-2019)
Automated downstream sync of changes from upstream as of 17-11-2019.
[no-wpt-sync]
r? @servo-wpt-sync
Diffstat (limited to 'tests/wpt/web-platform-tests/css/css-scroll-anchoring/nested-overflow-subtree-layout-ref.html')
-rw-r--r-- | tests/wpt/web-platform-tests/css/css-scroll-anchoring/nested-overflow-subtree-layout-ref.html | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/css/css-scroll-anchoring/nested-overflow-subtree-layout-ref.html b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/nested-overflow-subtree-layout-ref.html new file mode 100644 index 00000000000..77b0de7f0ba --- /dev/null +++ b/tests/wpt/web-platform-tests/css/css-scroll-anchoring/nested-overflow-subtree-layout-ref.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> +<head> + <link rel="author" title="Chris Harrelson" href="mailto:chrishtr@chromium.org"> + <link rel="help" href="https://drafts.csswg.org/css-scroll-anchoring/"> + <script src="/common/reftest-wait.js"></script> +</head> +<style> +#outer { + overflow: hidden; + width: 500px; + height: 500px; +} +#inner { + overflow: auto; + position: relative; + width: 500px; + height: 2000px; +} +p { + + font: 48pt monospace; +} +</style> +</head> +<body> +<div id="outer"> + <div id="inner"> + <p>Anchor</p> + </div> +</div> +<script> +const outer = document.querySelector("#outer"); +const inner = document.querySelector("#inner"); + +onload = () => { + requestAnimationFrame(() => { + requestAnimationFrame(() => { + outer.scrollTo(0, 70); + document.documentElement.removeAttribute("class"); + }); + }); +}; +</script> |