Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /css/css-backgrounds/inset-box-shadow-stacking-context-scroll.html - WPT Dashboard Interop Dashboard
<!DOCTYPE html>
<link rel="match" href="inset-box-shadow-scroll-ref.html"/>
<style>
#target {
position: absolute;
z-index: 1;
width: 200px;
height: 100px;
overflow: scroll;
background-color: white;
box-shadow: 10px 10px green inset;
padding: 10px;
}
#inner {
height: 120px;
}
</style>
<div id="target">
<div id="inner">
Passes if green inset shadow is visible.
</div>
</div>