Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / child-transform-with-anchor-point.html
blob5d0556d08183b852261898bc874a117b47a6aa2d
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style>
5 body {
6 overflow: hidden;
9 #perspective {
10 -webkit-perspective: 1000px;
11 position: absolute;
12 width: 600px;
13 left: -600px;
16 #transformed {
17 transform: rotateY(90deg);
18 -webkit-transform-origin: right;
19 background: green;
20 height: 800px;
23 #absolute {
24 /* This could be relative too, it just needs to be out of flow. */
25 position: absolute;
28 #container {
29 position: relative;
30 overflow: hidden;
31 width: 800px;
32 height: 600px;
34 </style>
35 <script>
36 if (window.testRunner)
37 testRunner.dumpAsTextWithPixelResults();
40 function doTest() {
41 var transformed = document.getElementById("transformed");
43 if (window.internals)
44 window.internals.forceCompositingUpdate(document);
46 // Request a recomposite of the layer.
47 transformed.style.opacity = 0.9;
48 document.body.offsetTop;
49 transformed.style.opacity = 1.0;
51 if (window.internals)
52 window.internals.forceCompositingUpdate(document);
55 window.onload = doTest;
56 </script>
57 </style>
58 </head>
59 <body>
60 <!-- The green rectangle should be visible. -->
61 <div id="container">
62 <div id="perspective">
63 <div id="transformed"></div>
64 <div id="absolute"></div>
65 </div>
66 </div>
67 </body>
68 </html>