Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(63)

Side by Side Diff: third_party/WebKit/LayoutTests/fast/transforms/transform-positioned-container.html

Issue 2547723002: Merge LayoutTests fast/transforms in transforms (Closed)
Patch Set: Fix a bad path reference. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <style>
3 #old-container {
4 position: relative;
5 }
6
7 #positioned-child {
8 position: absolute;
9 }
10
11 #descendant-needing-layout {
12 display: none;
13 width: 100px;
14 height: 100px;
15 background-color: green;
16 }
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;
30
31 var newContainer = document.getElementById("new-container");
32 var descendantNeedingLayout = document.getElementById("descendant-needing-la yout");
33
34 newContainer.style.transform = "translateX(0)";
35 descendantNeedingLayout.style.display = "block";
36 }
37
38 runTest();
39 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698