Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!doctype html>
<html class="reftest-wait">
<meta charset="utf-8">
<title>::scroll-markers with content-visibility: auto ancestors, content-visibility added</title>
<link rel="match" href="scroll-markers-under-content-visibility-auto-ref.html">
<link rel="author" href="mailto:vmpstr@chromium.org">
<link rel="assert" content="::scroll-markers should be visible even if the item is content-visibility: auto offscreen">
<script src="/common/reftest-wait.js"></script>
<style>
#scroller {
width: 600px;
height: 300px;
overflow: scroll;
scroll-marker-group: after;
}
#scroller div {
width: 600px;
height: 300px;
margin-bottom: 20px;
background: green;
}
#scroller.cvauto div {
content-visibility: auto;
}
#scroller::scroll-marker-group {
border: 3px solid black;
padding: 5px;
height: 20px;
display: block;
}
#scroller div::scroll-marker {
content: "";
width: 10px;
height: 10px;
background-color: blue;
border-radius: 50%;
display: inline-block;
}
</style>
<div id="scroller">
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
<div></div> <div></div> <div></div>
</div>
<script>
onload = () => requestAnimationFrame(() => requestAnimationFrame(() => {
scroller.classList.add("cvauto");
takeScreenshot();
}));
</script>
</html>