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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically.html

Issue 77863002: Update styleRecalc so that it traverses shadow insertion points in 2 pass algorithms (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically-expected.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script>
5 if (window.testRunner)
6 testRunner.waitUntilDone();
7
8 function test() {
9 var host = document.querySelector("#host");
10 var olderShadowRoot = host.createShadowRoot();
11 olderShadowRoot.appendChild(document.createElement("content"));
12 var youngerShadowRoot = host.createShadowRoot();
13 var shadow = document.createElement("shadow");
14 var shadowChild = document.createElement("div");
15 youngerShadowRoot.appendChild(shadow);
16 shadow.appendChild(shadowChild);
17 shadowChild.appendChild(document.createTextNode('CHILD1'));
18
19 function addChild() {
20 shadowChild.appendChild(document.createTextNode('CHILD2'));
21 if (window.testRunner)
22 testRunner.notifyDone();
23 }
24
25 setTimeout(addChild, 0);
esprehn 2013/11/20 09:22:23 Why setTimeout? Are you assuming that a recalcStyl
26 }
27 </script>
28 </head>
29 <body onload="test()">
30 <div title="requiresThisElementToReproduce"><div id='host'></div></div>
31 </body>
32 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/dom/shadow/shadow-element-add-child-dynamically-expected.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698