summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/compositing/scrollbar-painting.html
blob: 9215fea49cc62bd04571a90817a265e004d206c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<style>
.composited {
  transform: translateZ(0);
}

.container {
  width:100px;
  height:100px;
  overflow:scroll;
  resize:both;
  position:absolute;
}

.container::-webkit-scrollbar {
  background-color: rgba(0, 127, 0, 0.5);
}

.container::-webkit-resizer {
  background-color: rgba(0, 127, 0, 0.5);
}

.contents {
  background-color: rgba(0, 127, 0, 0.5);
  height: 100%;
  width: 100%;
}
</style>
<script>
  if (window.testRunner)
    testRunner.dumpAsTextWithPixelResults();
</script>
<!-- You should see a single 50% transparent green square -->
<div id="container" class="container composited">
  <div class="contents"></div>
</div>