Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / transforms / transform-positioned-container.html
blobf0aa6b8f208e979bdd8e5ca2acdfbb4ea00db0a5
1 <!DOCTYPE html>
2 <style>
3 #old-container {
4 position: relative;
7 #positioned-child {
8 position: absolute;
11 #descendant-needing-layout {
12 display: none;
13 width: 100px;
14 height: 100px;
15 background-color: green;
17 </style>
18 This test verifies adding transform to a block correctly update container status.
19 <div id="old-container">
20 <div id="new-container">
21 <div id="positioned-child">
22 <div id="descendant-needing-layout">
23 </div>
24 </div>
25 </div>
26 </div>
27 <script>
28 function runTest() {
29 document.body.offsetTop;
31 var newContainer = document.getElementById("new-container");
32 var descendantNeedingLayout = document.getElementById("descendant-needing-layout");
34 newContainer.style.transform = "translateX(0)";
35 descendantNeedingLayout.style.display = "block";
38 runTest();
39 </script>