forked from WebKit/WebKit-http
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclip-content-under-overflow-controls.html
69 lines (63 loc) · 1.25 KB
/
clip-content-under-overflow-controls.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<!DOCTYPE html>
<!DOCTYPE html>
<style>
.composited {
-webkit-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);
}
.normalContentArea {
background-color: rgba(0, 127, 0, 0.5);
position:absolute;
top:0px;
bottom:0px;
left:0px;
right:0px
}
.beneathVerticalScrollbar {
position:absolute;
background-color: red;
bottom:-15px;
left:0px;
right:0px;
height:15px;
}
.beneathHorizontalScrollbar {
position:absolute;
background-color: red;
top:0px;
bottom:0px;
right:-15px;
width:15px;
}
.beneathScrollCorner {
position:absolute;
background-color: red;
bottom:-15px;
right:-15px;
height:15px;
width:15px;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText(true); // Only useful as a pixel test
</script>
<!-- No red should be visible, only a solid green square. -->
<div class="container composited">
<div class="normalContentArea"></div>
<div class="beneathVerticalScrollbar"></div>
<div class="beneathHorizontalScrollbar"></div>
<div class="beneathScrollCorner"></div>
</div>