Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>Nested scrollable containers with scroll markers</title>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>
.container {
scroll-marker-group: before;
overflow: hidden;
}
.container::scroll-marker-group {
display: flex;
height: 25px;
}
.marker::scroll-marker {
display: block;
width: 25px;
height: 25px;
content: "";
background: green;
}
.contain_abs {
position: relative;
}
.contain_all {
contain: layout;
}
.uncontained::scroll-marker {
z-index: 100;
content: "ERROR";
background: red;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div class="container uncontained marker">
<div class="marker"></div>
<div class="container marker">
<div class="marker"></div>
<div class="marker"></div>
<div class="marker"></div>
<div class="uncontained marker" style="position:absolute;"></div>
<div class="uncontained marker" style="position:fixed;"></div>
<div class="container marker contain_abs">
<div class="marker" style="position:absolute;"></div>
<div class="uncontained marker" style="position:fixed;"></div>
<div class="container contain_all">
<div class="marker"></div>
<div class="marker" style="position:fixed;"></div>
<div class="marker"></div>
<div class="marker"></div>
</div>
<div class="marker"></div>
<div class="marker"></div>
<div class="marker"></div>
</div>
</div>
<div class="marker"></div>
<div class="marker"></div>
</div>
<div class="uncontained marker"></div>