blob: 0edc93eefaa854fd30838ab037bd20975947b622 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
<!DOCTYPE>
<html>
<head>
<style>
body {
margin: 0;
}
.box {
height: 200px;
width: 200px;
background-color: red;
transform: translateZ(1px);
}
.indicator {
position: absolute;
top: 200px;
background-color: green;
}
.reflected {
-webkit-box-reflect: below 0;
}
</style>
<script>
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
function doTest()
{
window.setTimeout(function() {
document.getElementById('test').style.backgroundColor = 'transparent';
if (window.testRunner)
testRunner.notifyDone();
}, 0);
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div class="indicator box"></div>
<!-- You should see no red box below -->
<div id="test" class="reflected box"></div>
</body>
</html>
|