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

Side by Side Diff: LayoutTests/fast/dom/shadow/content-pseudo-element-overridden.html

Issue 48903019: Delete js-test-post.js. (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
OLDNEW
1 <!doctype html> 1 <!doctype html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../js/resources/js-test-pre.js"></script> 4 <script src="../../js/resources/js-test-pre.js"></script>
5 <style> 5 <style>
6 .contentClass { 6 .contentClass {
7 color: blue; 7 color: blue;
8 } 8 }
9 </style> 9 </style>
10 </head> 10 </head>
(...skipping 17 matching lines...) Expand all
28 <pre id='console'></pre> 28 <pre id='console'></pre>
29 </body> 29 </body>
30 <script> 30 <script>
31 description('Test for crbug.com/274059. Should be able to override ::content sty les in shadow root style sheet from the document.'); 31 description('Test for crbug.com/274059. Should be able to override ::content sty les in shadow root style sheet from the document.');
32 var host = document.querySelector('#host'); 32 var host = document.querySelector('#host');
33 var root = host.createShadowRoot(); 33 var root = host.createShadowRoot();
34 var template = document.querySelector('#tmpl'); 34 var template = document.querySelector('#tmpl');
35 root.appendChild(template.content); 35 root.appendChild(template.content);
36 shouldBe('window.getComputedStyle(document.querySelector(".contentClass")).color ', '"rgb(0, 0, 255)"'); 36 shouldBe('window.getComputedStyle(document.querySelector(".contentClass")).color ', '"rgb(0, 0, 255)"');
37 </script> 37 </script>
38 <script src="../../js/resources/js-test-post.js"></script>
39 </html> 38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698