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="../../js/resources/js-test-pre.js"></script> |
11 <script src="resources/polyfill.js"></script> | |
12 <script> | 11 <script> |
13 function testNoResetStyleInheritance() { | 12 function testNoResetStyleInheritance() { |
14 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."); |
15 var div = document.getElementById('no-reset-style-inheritance'); | 14 var div = document.getElementById('no-reset-style-inheritance'); |
16 | 15 |
17 var shadowRoot = div.webkitCreateShadowRoot(); | 16 var shadowRoot = div.webkitCreateShadowRoot(); |
18 shadowRoot.innerHTML = '<content id="content"></content>'; | 17 shadowRoot.innerHTML = '<content id="content"></content>'; |
19 | 18 |
20 shadowRoot.getElementById('content').resetStyleInheritance = false; | 19 shadowRoot.getElementById('content').resetStyleInheritance = false; |
21 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... |
142 <div id="test-cases"> | 141 <div id="test-cases"> |
143 <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> |
144 <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> |
145 <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> |
146 <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> |
147 <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> |
148 <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> |
149 </div> | 148 </div> |
150 </body> | 149 </body> |
151 </html> | 150 </html> |
OLD | NEW |