OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #grid { | 5 #grid { |
6 display: grid; | 6 display: grid; |
7 grid-auto-flow: stack; | 7 grid-auto-flow: stack; |
8 } | 8 } |
9 embed { | 9 .absolute { |
10 position: absolute; | 10 position: absolute; |
11 } | 11 } |
12 </style> | 12 </style> |
13 <script type="text/javascript"> | 13 <script type="text/javascript"> |
14 if (window.testRunner) | 14 if (window.testRunner) |
15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
16 </script> | 16 </script> |
17 </head> | 17 </head> |
18 <body> | 18 <body> |
19 <p>This test checks that adding a positioned block grid item after an inline
grid item (which inserts it inside the | 19 <p>This tests checks that adding grid items when some of them are positioned
does not crash.</p> |
20 existing anonymous block wrapping the inline item) does not crash on debug.<
/p> | |
21 <div id="grid"> | 20 <div id="grid"> |
22 test | 21 <div></div> |
| 22 <div class="absolute"></div> |
23 </div> | 23 </div> |
24 <script> | 24 <script> |
25 var grid = document.getElementById("grid"); | 25 var grid = document.getElementById("grid"); |
26 grid.offsetTop; | 26 grid.offsetTop; |
27 var embed = document.createElement("embed"); | 27 var newItem1 = document.createElement("div"); |
28 grid.appendChild(embed); | 28 grid.appendChild(newItem1); |
| 29 var newItem2 = document.createElement("div"); |
| 30 newItem2.className = "absolute"; |
| 31 grid.appendChild(newItem2); |
29 </script> | 32 </script> |
30 </body> | 33 </body> |
31 </html> | 34 </html> |
OLD | NEW |