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

Side by Side Diff: LayoutTests/platform/chromium/compositing/child-layer-3d-sorting.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE>
2 <html>
3 <head>
4 <title>Child layer 3d sorting</title>
5
6 <style type="text/css" media="screen">
7 #parent {
8 -webkit-transform-style: preserve-3d;
9 -webkit-transform: translateZ(0);
10 }
11 #child {
12 width: 200px;
13 height: 200px;
14 -webkit-transform: translateZ(0px);
15 background: blue;
16 }
17 #child > div {
18 width: 100px;
19 height: 100px;
20 -webkit-transform: translateZ(0px);
21 background: green;
22 }
23 </style>
24 <script type="text/javascript" charset="utf-8">
25 if (window.testRunner) {
26 testRunner.waitUntilDone();
27 testRunner.dumpAsText(true);
28 }
29 function doTest()
30 {
31 var child = document.getElementById('child');
32
33 window.setTimeout(function() {
34 // Move the parent forward
35 child.style.webkitTransform = "translateZ(10px)";
36 if (window.testRunner) {
37 window.setTimeout(function() {
38 testRunner.notifyDone();
39 }, 0);
40 }
41 }, 0);
42 }
43
44 window.addEventListener('load', doTest, false);
45 </script>
46 </head>
47 <body>
48 <!-- When the test is done, you should see a green square inside the blue square -->
49
50 <div id="parent">
51 <div id="child">
52 <div></div>
53 </div>
54 </div>
55 </body>
56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698