| OLD | NEW |
| 1 <!doctype html> | 1 <!doctype html> |
| 2 <style> | 2 <style> |
| 3 .foo { | 3 .foo { |
| 4 background: red; | 4 background: red; |
| 5 } | 5 } |
| 6 div { | 6 div { |
| 7 border: 1px solid black; | 7 border: 1px solid black; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 <script src="../../resources/js-test.js"></script> | 10 <script src="../../resources/js-test.js"></script> |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 host5.innerHTML = '<div>item 1</div><div>item 2</div>'; | 59 host5.innerHTML = '<div>item 1</div><div>item 2</div>'; |
| 60 container.appendChild(host5); | 60 container.appendChild(host5); |
| 61 document.body.offsetHeight; | 61 document.body.offsetHeight; |
| 62 var light = host5.querySelectorAll('div'); | 62 var light = host5.querySelectorAll('div'); |
| 63 var shadow = querySelectorInShadow(host5, 'div'); | 63 var shadow = querySelectorInShadow(host5, 'div'); |
| 64 shouldBeTrue(String(internals.isSharingStyle(light[0], light[1]))); | 64 shouldBeTrue(String(internals.isSharingStyle(light[0], light[1]))); |
| 65 shouldBeFalse(String(internals.isSharingStyle(light[0], shadow))); | 65 shouldBeFalse(String(internals.isSharingStyle(light[0], shadow))); |
| 66 | 66 |
| 67 var host6 = document.createElement('div'); | 67 var host6 = document.createElement('div'); |
| 68 var root1 = host6.createShadowRoot(); | 68 var root1 = host6.createShadowRoot(); |
| 69 root1.innerHTML = '<style>.foo::content > p { color: red; }</style><content
class="foo" select=":first-child"></content><content></content>'; | 69 root1.innerHTML = '<style>.foo::content > p { color: red; }</style><content
class="foo" select=".a"></content><content></content>'; |
| 70 var root2 = host6.createShadowRoot(); | 70 var root2 = host6.createShadowRoot(); |
| 71 root2.innerHTML = '<shadow></shadow>'; | 71 root2.innerHTML = '<shadow></shadow>'; |
| 72 host6.innerHTML = '<p>A</p><p>B</p>'; | 72 host6.innerHTML = '<p class="a">A</p><p>B</p>'; |
| 73 container.appendChild(host6); | 73 container.appendChild(host6); |
| 74 document.body.offsetHeight; | 74 document.body.offsetHeight; |
| 75 light = host6.querySelectorAll('p'); | 75 light = host6.querySelectorAll('p'); |
| 76 shouldBeFalse(String(internals.isSharingStyle(light[0], light[1]))); | 76 shouldBeFalse(String(internals.isSharingStyle(light[0], light[1]))); |
| 77 } | 77 } |
| 78 </script> | 78 </script> |
| 79 <div id="container"></div> | 79 <div id="container"></div> |
| OLD | NEW |