Bug 1860196 [wpt PR 42652] - Upstream wpt_internal display-lock WPTs, a=testonly
[gecko.git] / testing / web-platform / tests / html / editing / the-hidden-attribute / hidden-until-found-006-ref.html
blobe14ba82c278e2c1fc4ecb864871bd6a961c28622
1 <!doctype HTML>
2 <html>
3 <meta charset="utf8">
4 <title>content-visibility hidden-matchable + scrollIntoView (reference)</title>
5 <link rel="author" title="Vladimir Levin" href="mailto:vmpstr@chromium.org">
6 <link rel="help" href="https://github.com/WICG/display-locking">
8 <style>
9 .spacer {
10 height: 1000px;
11 background: lightgreen;
13 #container {
14 width: 150px;
15 height: 150px;
16 background: lightblue;
18 #target {
19 position: relative;
20 top: 75px;
21 visibility: hidden;
23 width: 50px;
24 height: 50px;
25 background: red;
27 </style>
29 <div>top of the page</div>
30 <div class=spacer></div>
31 <div id=container>
32 <div id=target></div>
33 </div>
34 <div class=spacer></div>
35 <div>bottom of the page</div>
37 <script>
38 onload = () => document.getElementById("target").scrollIntoView();
39 </script>
40 </html>