OLD | NEW |
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 Loading... |
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> |
OLD | NEW |