Debian Codegraph @

packages/popper/tests/visual/test.html

raw
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 #ref {
6 background: orange;
7 width: 50px;
8 height: 50px;
9 }
10
11 #pop {
12 background: green;
13 width: 50px;
14 height: 50px;
15 }
16
17 .container {
18 align-items: center;
19 background: blue;
20 border: 20px solid red;
21 display: flex;
22 height: 400px;
23 justify-content: center;
24 margin: auto;
25 position: relative;
26 width: 400px;
27 }
28 </style>
29 </head>
30 <body>
31 <div class="container">
32 <div id="ref" aria-describedby="pop">ref</div>
33 <div id="pop" role="tooltip">pop</div>
34 </div>
35
36 <script src="../../dist/umd/popper.js"></script>
37 <script>
38 const refEl = document.getElementById("ref");
39 const popEl = document.getElementById("pop");
40
41 const popper = new Popper(refEl, popEl);
42 </script>
43 </body>
44 </html>