| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/shadow-dom.js"></script> | 4 <script src="resources/shadow-dom.js"></script> |
| 5 <script src="../../js/resources/js-test-pre.js"></script> | 5 <script src="../../js/resources/js-test-pre.js"></script> |
| 6 </head> | 6 </head> |
| 7 <body class="bodyClass"> | 7 <body class="bodyClass"> |
| 8 | 8 |
| 9 <template id="tmpl"> | 9 <template id="tmpl"> |
| 10 <style> | 10 <style> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 <script> | 30 <script> |
| 31 description("Test for crbug.com/274063, cannot style ::content with a rule that
includes :host."); | 31 description("Test for crbug.com/274063, cannot style ::content with a rule that
includes :host."); |
| 32 | 32 |
| 33 var host = document.querySelector('#host'); | 33 var host = document.querySelector('#host'); |
| 34 var root = host.createShadowRoot(); | 34 var root = host.createShadowRoot(); |
| 35 var template = document.querySelector('#tmpl'); | 35 var template = document.querySelector('#tmpl'); |
| 36 root.appendChild(template.content); | 36 root.appendChild(template.content); |
| 37 | 37 |
| 38 shouldBe('window.getComputedStyle(document.querySelector("#host > .content")).co
lor', '"rgb(255, 0, 0)"'); | 38 shouldBe('window.getComputedStyle(document.querySelector("#host > .content")).co
lor', '"rgb(255, 0, 0)"'); |
| 39 </script> | 39 </script> |
| 40 <script src="../../js/resources/js-test-post.js"></script> | |
| 41 </html> | 40 </html> |
| OLD | NEW |