Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / compositing / composited-negative-zindex-child.html
blob0686e701170a33ec75c67987a4a22e06a4d957c6
1 <!DOCTYPE html>
3 <html>
4 <head>
5 <style type="text/css" media="screen">
6 .box {
7 height: 100px;
8 width: 100px;
9 position: absolute;
10 z-index: 0;
13 .parent {
14 border: 1px solid black;
17 .child {
18 top: 10px;
19 left: 10px;
20 background-color: silver;
21 z-index: -1;
23 </style>
24 <script type="text/javascript" charset="utf-8">
25 if (window.testRunner)
26 testRunner.dumpAsText();
28 function doTest() {
29 document.getElementById('child').style.webkitTransform = 'translateZ(0)';
31 window.addEventListener('load', doTest, false);
32 </script>
33 </head>
34 <body>
35 <p>This test should not assert in debug builds.</p>
36 <div class="parent box">
37 <div id="child" class="child box"></div>
38 </div>
39 </body>
40 </html>