| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <style> | 4 <style> |
| 5 div.resetTest { | 5 div.resetTest { |
| 6 background-color: #eef; | 6 background-color: #eef; |
| 7 color: #fee; | 7 color: #fee; |
| 8 } | 8 } |
| 9 </style> | 9 </style> |
| 10 <script src="../../js/resources/js-test-pre.js"></script> | 10 <script src="../../../resources/js-test.js"></script> |
| 11 <script> | 11 <script> |
| 12 function testNoResetStyleInheritance() { | 12 function testNoResetStyleInheritance() { |
| 13 debug("Test case: no reset-style-inheritance. color value should be inherite
d from the shadow host."); | 13 debug("Test case: no reset-style-inheritance. color value should be inherite
d from the shadow host."); |
| 14 var div = document.getElementById('no-reset-style-inheritance'); | 14 var div = document.getElementById('no-reset-style-inheritance'); |
| 15 | 15 |
| 16 var shadowRoot = div.createShadowRoot(); | 16 var shadowRoot = div.createShadowRoot(); |
| 17 shadowRoot.innerHTML = '<content id="content"></content>'; | 17 shadowRoot.innerHTML = '<content id="content"></content>'; |
| 18 | 18 |
| 19 shadowRoot.getElementById('content').resetStyleInheritance = false; | 19 shadowRoot.getElementById('content').resetStyleInheritance = false; |
| 20 shouldBe('window.getComputedStyle(document.getElementById("no-reset-style-in
heritance").firstChild).color', '"rgb(255, 238, 238)"'); | 20 shouldBe('window.getComputedStyle(document.getElementById("no-reset-style-in
heritance").firstChild).color', '"rgb(255, 238, 238)"'); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 <div id="test-cases"> | 141 <div id="test-cases"> |
| 142 <div id="no-reset-style-inheritance" class="resetTest"><span>first-child</span
></div> | 142 <div id="no-reset-style-inheritance" class="resetTest"><span>first-child</span
></div> |
| 143 <div id="reset-style-inheritance" class="resetTest"><span>first-child</span></
div> | 143 <div id="reset-style-inheritance" class="resetTest"><span>first-child</span></
div> |
| 144 <div id="reset-style-inheritance-dynamic" class="resetTest"><span>first-child<
/span></div> | 144 <div id="reset-style-inheritance-dynamic" class="resetTest"><span>first-child<
/span></div> |
| 145 <div id="reset-but-not-cross-upper-boundary" class="resetTest"><span>first-chi
ld</span></div> | 145 <div id="reset-but-not-cross-upper-boundary" class="resetTest"><span>first-chi
ld</span></div> |
| 146 <div id="multiple-shadow-roots" class="resetTest"><span>first-child</span></di
v> | 146 <div id="multiple-shadow-roots" class="resetTest"><span>first-child</span></di
v> |
| 147 <div id="multiple-insertion-points" class="resetTest"><span>first-child</span>
<span>last-child</span></div> | 147 <div id="multiple-insertion-points" class="resetTest"><span>first-child</span>
<span>last-child</span></div> |
| 148 </div> | 148 </div> |
| 149 </body> | 149 </body> |
| 150 </html> | 150 </html> |
| OLD | NEW |