forked from WebKit/WebKit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvisual-overflow-change-expected.html
53 lines (48 loc) · 1.28 KB
/
visual-overflow-change-expected.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
<!DOCTYPE HTML>
<head>
<style>
body {
overflow: hidden;
margin: 0;
}
.svgcanvas {
position: relative;
width: 3800px;
height: 600px;
display: inline-block;
overflow: hidden;
}
.indicator {
position: absolute;
top: 0;
left: 0;
width: 3800px; /* Trigger composited tiling */
height: 600px;
display: inline-block;
background-color: red;
}
.composited {
-webkit-transform: translateZ(0);
}
#svgroot {
position: absolute;
top: 0;
left: 0;
background-color: gray;
}
svg {
border: 4px solid black;
box-sizing: border-box;
}
</style>
</head>
<!-- You should see no red -->
<div class="indicator"></div>
<div class="composited svgcanvas">
<svg id="svgroot" width="1920" height="1400" overflow="visible">
<svg id="canvasBackground" x="540" y="480" width="640" height="480" overflow="none">
<rect width="100%" height="100%" fill="green"/>
</svg>
</svg>
</div>
</div>