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
|
<!DOCTYPE html>
<html><head>
<title>Transform in an empty container test.</title>
<style type="text/css">
.composited {
transform: translateZ(0);
}
.abs {
position: absolute;
}
.empty-transform {
transform: matrix3d(1, 0, 0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
width: 0px;
height: 100px;
}
.green {
background-color: green;
}
.box {
width: 50px;
height: 50px;
}
</style>
<script type="text/javascript">
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
}
</script>
</head>
<body>
<!--
This div has a height, and is transformed to flip things inside it along the Y axis.
While it does not have a width, overflow contents need to be transformed based on its height still.
-->
<div class="abs empty-transform">
<div class="composited green box"></div>
</div>
</body>
</html>
|