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

Side by Side Diff: LayoutTests/fast/css-grid-layout/grid-add-item-with-positioned-items.html

Issue 637033003: [CSS Grid Layout] Fix positioned grid children position and size (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
OLDNEW
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698