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

Side by Side Diff: LayoutTests/fast/runin/crash-when-reparent-sibling.html

Issue 53373003: Remove display:run-in as per https://groups.google.com/a/chromium.org/forum/#!topic/blink-dev/_tHSX… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix test Created 7 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <html>
2 <head>
3 <script>
4 function runTest()
5 {
6 if (window.testRunner)
7 testRunner.dumpAsText();
8
9 // Create a run-in.
10 var elem = document.createElement("div");
11 elem.id = "run-in";
12 elem.innerHTML = "run-in";
13 elem.setAttribute("style", "display: run-in");
14 document.body.appendChild(elem);
15
16 // Create a sibling block to the run-in.
17 elem = document.createElement("div");
18 elem.id = "block-sibling";
19 elem.innerHTML = "block sibling";
20 document.body.appendChild(elem);
21
22 // Trigger a re-paint.
23 document.body.offsetTop;
24
25 // Add a block child to the run-in.
26 elem = document.createElement("div");
27 elem.innerHTML = "block child";
28 elem.setAttribute("style", "display: table");
29 document.getElementById("run-in").appendChild(elem);
30
31 // Trigger a re-paint.
32 document.body.offsetTop;
33
34 // Reparent the run-in's sibling block.
35 document.getElementById("output").appendChild(document.getElementByI d("block-sibling"));
36 document.getElementById("result").innerHTML = "PASS";
37 }
38 </script>
39 </head>
40 <body onload="runTest()">
41 <div id="result"></div>
42 Output: <br/>
43 <div id="output"></div>
44 </body>
45 </html>
OLDNEW
« no previous file with comments | « LayoutTests/fast/runin/002-expected.txt ('k') | LayoutTests/fast/runin/crash-when-reparent-sibling-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698