Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-overflow/scroll-marker-008.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<title>Scroll marker group with out-of-flow children</title>
<link rel="match" href="../reference/ref-filled-green-100px-square.xht">
<style>
#scroller {
overflow: hidden;
scroll-marker-group: after;
}
#scroller::scroll-marker-group {
contain: none;
/* It should be impossible to disable layout containment for scroll marker groups, so this declaration should have no effect. */
display: block;
width: 100px;
height: 100px;
background: red;
}
#scroller>*::scroll-marker {
display: block;
position: absolute;
right: 0;
top: 0;
width: 100px;
height: 100px;
content: "";
background: green;
}
</style>
<p>Test passes if there is a filled green square and <strong>no red</strong>.</p>
<div id="scroller">
<div></div>
</div>