We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52f4343 commit 61fa3d8Copy full SHA for 61fa3d8
src/pat/scroll-box/index.html
@@ -15,6 +15,15 @@
15
height: 200vh;
16
}
17
18
+ .container {
19
+ /**
20
+ * trick to espatblish a relative containing block
21
+ * for position:fixed
22
+ * See: https://developer.mozilla.org/en-US/docs/Web/CSS/position#fixed
23
+ */
24
+ transform: rotate(0);
25
+ }
26
+
27
body .pat-scroll-box {
28
overflow-y: auto;
29
border: 1px solid black;
@@ -49,8 +58,10 @@
49
58
</style>
50
59
</head>
51
60
<body class="pat-scroll-box">
61
+ <div class="container">
52
62
<div class="pat-scroll-box">
53
- <div class="pat-scroll-box--inner">hello.</div>
63
+ <div class="pat-scroll-box--inner">hello.</div>
54
64
</div>
65
+ </div>
55
66
</body>
56
67
</html>
0 commit comments