Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / geometry / limit-layer-bounds-positioned-transition.html
blob7cf25f9c8e6957f88e7603ea9c8ab1817f724073
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <style type="text/css" media="screen">
6 body {
7 position: relative;
9 .container {
10 position: relative;
11 width: 100px;
12 height: 100px;
13 padding: 20px;
14 z-index: 0;
15 border: 1px solid black;
18 .compositing {
19 position: absolute;
20 top: 21px;
21 left: 21px;
22 width: 100px;
23 height: 100px;
24 transform: translateZ(0);
27 #far-left {
28 position: relative;
29 left: -1000px;
30 width: 1200px;
31 height: 100px;
32 background-color: green;
35 #far-left.moved {
36 transform: translateX(200px);
39 .indicator {
40 position: absolute;
41 top: 21px;
42 left: 21px;
43 width: 100px;
44 height: 100px;
45 background-color: red;
47 </style>
48 <script type="text/javascript" charset="utf-8">
49 if (window.testRunner) {
50 testRunner.dumpAsText();
51 testRunner.waitUntilDone();
54 function doTest()
56 document.getElementById('far-left').className = 'moved';
57 if (window.testRunner) {
58 document.getElementById('layers').innerText = window.internals.layerTreeAsText(document);
59 testRunner.notifyDone();
63 window.addEventListener('load', doTest, false);
64 </script>
65 </head>
67 <body>
69 <!-- Go into compositing. -->
70 <div class="compositing"></div>
72 <div class="indicator"></div>
74 <!-- Test that layers get updated on the addition of a transform -->
75 <!-- The green layer should extend to the left edge of the page -->
76 <div class="container">
77 <div id="far-left">
78 Text here
79 </div>
80 </div>
81 <pre id="layers">Layer tree goes here in DRT</pre>
82 </body>
83 </html>