summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/css/css-backgrounds/inset-box-shadow-stacking-context-scroll.html
blob: edd79b88be2a71fc6054e7e866c8cabe03948a89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<!DOCTYPE html>
<link rel="help" href="http://www.w3.org/TR/css3-background/#the-box-shadow">
<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>