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

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: Make styleRecalc traverse shadow trees in 2 pass algorithm Created 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <body onload="test();">
4 <div title="requiresThisElementToReproduce"><div id='host'></div></div>
5 </body>
6 <script>
7 if (window.testRunner)
8 testRunner.waitUntilDone();
9
10 function test() {
11 var host = document.querySelector("#host");
12
13 var olderShadowRoot = host.createShadowRoot();
14 olderShadowRoot.appendChild(document.createElement("content"));
15
16 var youngerShadowRoot = host.createShadowRoot();
17 var shadow = document.createElement("shadow");
18 var shadowChild = document.createElement("div");
19 youngerShadowRoot.appendChild(shadow);
20 shadow.appendChild(shadowChild);
21 shadowChild.appendChild(document.createTextNode('CHILD1'));
22
23 document.body.offsetLeft;
24 shadowChild.appendChild(document.createTextNode('CHILD2'));
25
26 if (window.testRunner)
27 testRunner.notifyDone();
28 }
29 </script>
30 </head>
31 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698