OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <html> | 3 <html> |
4 <head> | 4 <head> |
5 <style type="text/css" media="screen"> | 5 <style type="text/css" media="screen"> |
6 span { | 6 span { |
7 position: relative; | 7 position: relative; |
8 padding: 10px; | 8 padding: 10px; |
9 } | 9 } |
10 | 10 |
11 .composited { | 11 .composited { |
12 position: absolute; | 12 position: absolute; |
13 width: 200px; | 13 width: 200px; |
14 height: 100px; | 14 height: 100px; |
15 border: 1px solid black; | 15 border: 1px solid black; |
16 -webkit-transform: translateZ(0); | 16 transform: translateZ(0); |
17 } | 17 } |
18 </style> | 18 </style> |
19 <script type="text/javascript" charset="utf-8"> | 19 <script type="text/javascript" charset="utf-8"> |
20 if (window.testRunner) | 20 if (window.testRunner) |
21 testRunner.dumpAsText(); | 21 testRunner.dumpAsText(); |
22 | 22 |
23 function doTest() | 23 function doTest() |
24 { | 24 { |
25 window.setTimeout(function() { | 25 window.setTimeout(function() { |
26 var testNode = document.getElementById('test'); | 26 var testNode = document.getElementById('test'); |
27 testNode.removeChild(testNode.firstChild); | 27 testNode.removeChild(testNode.firstChild); |
28 }, 0); | 28 }, 0); |
29 } | 29 } |
30 | 30 |
31 window.addEventListener('load', doTest, false); | 31 window.addEventListener('load', doTest, false); |
32 </script> | 32 </script> |
33 </head> | 33 </head> |
34 <body> | 34 <body> |
35 | 35 |
36 <p>This should not assert in debug builds.</p> | 36 <p>This should not assert in debug builds.</p> |
37 <div class="composited"></div> | 37 <div class="composited"></div> |
38 <span id="test">test</span> | 38 <span id="test">test</span> |
39 </body> | 39 </body> |
40 </html> | 40 </html> |
OLD | NEW |