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

Side by Side Diff: LayoutTests/fast/css/shadow-style-removed-out-of-document.html

Issue 325663003: Remove scoped styles (retry) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Reorder inDocument() check so that register/unregister should balance. Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/css/shadow-style-removed-out-of-document-expected.txt » ('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>
tasak 2014/06/10 08:51:26 We don't need <html>, <head> and <body> if this te
kochi 2014/06/10 09:09:05 Done. <!DOCTYPE> removed too.
4 <script src="../../resources/js-test.js"></script>
5 <script>
6 var div = document.createElement('div');
7 var root = div.createShadowRoot();
8 root.innerHTML = '<style>div { color: green; }</style><div>Hello world</div>';
9 // Remove style element before its shadow root is attached to document.
10 root.removeChild(root.firstChild);
11 delete root;
12 delete div;
tasak 2014/06/10 08:51:26 root = null and div = null? However, do we need "
kochi 2014/06/10 09:09:05 I made sure line 10 (root.removeChild()) only is e
13 </script>
14 </head>
15 <body>
16 Hello shadow style
17 </body>
18 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/css/shadow-style-removed-out-of-document-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698