OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <link href="resources/grid.css" rel="stylesheet"> | 2 <link href="resources/grid.css" rel="stylesheet"> |
3 <p>This test checks that removing a non-RenderBox grid item doesn't make us cras
h.</p> | 3 <p>This test checks that removing a non-LayoutBox grid item doesn't make us cras
h.</p> |
4 <p>This test has PASSED if it didn't crash and you see PASSED below.</p> | 4 <p>This test has PASSED if it didn't crash and you see PASSED below.</p> |
5 <div class="grid"> | 5 <div class="grid"> |
6 <svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='190'> | 6 <svg xmlns='http://www.w3.org/2000/svg' version='1.1' height='190'> |
7 <polygon points='100,10 40,180 190,60 10,60 160,180' style='fill:lime;stro
ke:purple;stroke-width:5;fill-rule:evenodd;'> | 7 <polygon points='100,10 40,180 190,60 10,60 160,180' style='fill:lime;stro
ke:purple;stroke-width:5;fill-rule:evenodd;'> |
8 </svg> | 8 </svg> |
9 </div> | 9 </div> |
10 | 10 |
11 <script> | 11 <script> |
12 if (window.testRunner) | 12 if (window.testRunner) |
13 testRunner.dumpAsText(); | 13 testRunner.dumpAsText(); |
14 | 14 |
15 var grid = document.getElementsByClassName("grid")[0]; | 15 var grid = document.getElementsByClassName("grid")[0]; |
16 grid.offsetTop; | 16 grid.offsetTop; |
17 while (grid.firstChild) | 17 while (grid.firstChild) |
18 grid.removeChild(grid.firstChild); | 18 grid.removeChild(grid.firstChild); |
19 grid.offsetTop; | 19 grid.offsetTop; |
20 grid.innerHTML = "PASSED"; | 20 grid.innerHTML = "PASSED"; |
21 </script> | 21 </script> |
OLD | NEW |