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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-div-reflow.html

Issue 441223002: Update LayoutTests by removing child elements of <shadow> element (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months 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 #host { 5 #host {
6 width: 200px; 6 width: 200px;
7 } 7 }
8 </style> 8 </style>
9 </head> 9 </head>
10 <body> 10 <body>
11 <div id="host" tabindex=0> 11 <div id="host" tabindex=0>
12 <div> 12 <div>
13 <div><div>First line leads,</div></div> 13 <div><div>First line leads,</div></div>
14 </div> 14 </div>
15 </div> 15 </div>
16 <script> 16 <script>
17 if (window.internals) 17 if (window.internals)
18 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true); 18 internals.settings.setAuthorShadowDOMForAnyElementEnabled(true);
19 19
20 var host = document.getElementById("host"); 20 var host = document.getElementById("host");
21 var shadow1 = host.createShadowRoot(); 21 var shadow1 = host.createShadowRoot();
22 shadow1.innerHTML = "<div><shadow><content></content></shadow><div></div></div>" ; 22 shadow1.innerHTML = "<div><shadow></shadow><div></div></div>";
23 var shadow2 = host.createShadowRoot(); 23 var shadow2 = host.createShadowRoot();
24 shadow2.innerHTML = "<section>" 24 shadow2.innerHTML = "<section>"
25 + "<shadow><content></content></shadow>" 25 + "<shadow></shadow>"
26 + "<div>second line follows.</div>" 26 + "<div>second line follows.</div>"
27 + "</section>"; 27 + "</section>";
28 host.focus(); 28 host.focus();
29 host.blur(); 29 host.blur();
30 </script> 30 </script>
31 </body> 31 </body>
32 </html> 32 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698