blob: b7cfcfb6c1bc32a5b9b0152f3381fd6238b96efb (
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
<!DOCTYPE html>
<html lang="en" class="reftest-wait">
<meta charset="utf-8">
<title>Change a layer's transform making negative w component.</title>
<style>
body {
background-color: white;
overflow: hidden;
}
#outer {
perspective: 500px;
perspective-origin: 350px 250px;
width: 700px;
height: 500px;
display: block;
top: 10px;
left: 10px;
position: absolute;
overflow: visible;
}
#container1 {
transform-style: preserve-3d;
transform: translateX(-50px) translateZ(350px) rotateY(-90deg);
}
#container2 {
transform-style: preserve-3d;
transform: translateY(-200px) translateX(50px) translateZ(350px) rotateY(90deg);
}
#scale {
transform-style: preserve-3d;
}
.negw {
transform: translateZ(1px);
}
.posw {
transform: translateZ(-500px);;
}
#dummy {
transform-style: preserve-3d;
transform: translateY(150px);
}
#square1, #square2 {
background-color: red;
width: 700px;
height: 200px;
}
</style>
<body>
<div id="outer">
<div id="scale" class="negw">
<div id="dummy">
<div id="container1">
<div id="square1"></div>
</div>
<div id="container2">
<div id="square2"></div>
</div>
</div>
</div>
</div>
<script>
var scale = document.getElementById("scale");
function doTest() {
scale.className = "posw";
document.documentElement.removeAttribute("class");
}
document.addEventListener("MozReftestInvalidate", doTest, false);
</script>
|