Tests/LibWeb: Restructure Ref and Screenshot test dirs to match others

Now each test type has the same directories:
- input
- expected
- data

Also, tests can be in subdirectories within ./input.
This commit is contained in:
Sam Atkins 2024-11-05 12:49:08 +00:00 committed by Sam Atkins
commit b7efb61fbe
Notes: github-actions[bot] 2024-11-05 16:45:19 +00:00
360 changed files with 451 additions and 448 deletions

View file

@ -0,0 +1,50 @@
<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>