mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-14 12:09:45 +00:00
Now each test type has the same directories: - input - expected - data Also, tests can be in subdirectories within ./input.
50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
HTML
<link rel="match" href="../expected/scrollable-box-with-nested-stacking-context-ref.html" />
|
|
<style>
|
|
* {
|
|
scrollbar-width: none;
|
|
}
|
|
|
|
#scrollable-box {
|
|
width: 300px;
|
|
height: 500px;
|
|
overflow: auto;
|
|
position: relative;
|
|
border: 2px solid black;
|
|
}
|
|
|
|
.content {
|
|
height: 1000px;
|
|
background-color: lightblue;
|
|
}
|
|
|
|
.abspos {
|
|
position: absolute;
|
|
bottom: 0px;
|
|
right: 0px;
|
|
width: 150px;
|
|
height: 50px;
|
|
background-color: coral;
|
|
z-index: 1000;
|
|
display: flex;
|
|
}
|
|
|
|
.box {
|
|
background-color: magenta;
|
|
width: 100px;
|
|
height: 100px;
|
|
position: relative;
|
|
top: 0px;
|
|
left: 0px;
|
|
}
|
|
</style>
|
|
<div id="scrollable-box">
|
|
<div class="content">
|
|
Lots of scrollable content here!
|
|
<div class="box">box</div>
|
|
</div>
|
|
<div class="abspos"><div class="box">box</div></div>
|
|
</div>
|
|
<script>
|
|
const scrollContainer = document.getElementById("scrollable-box");
|
|
scrollContainer.scrollTop = 500;
|
|
</script>
|