OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="resources/polyfill.js"></script> | |
5 </head> | 4 </head> |
6 <body> | 5 <body> |
7 <div id="container"><span id="in-host-children" class="kotori" href="/">tehepero
</span></div> | 6 <div id="container"><span id="in-host-children" class="kotori" href="/">tehepero
</span></div> |
8 <div><span id="outside-of-shadow" class="kotori" href="/">tehepero</span></div> | 7 <div><span id="outside-of-shadow" class="kotori" href="/">tehepero</span></div> |
9 | 8 |
10 <script src="../../js/resources/js-test-pre.js"></script> | 9 <script src="../../js/resources/js-test-pre.js"></script> |
11 <script> | 10 <script> |
12 function computedBackgroundColor(elem) { | 11 function computedBackgroundColor(elem) { |
13 var style = document.defaultView.getComputedStyle(elem, ''); | 12 var style = document.defaultView.getComputedStyle(elem, ''); |
14 return style.backgroundColor; | 13 return style.backgroundColor; |
(...skipping 20 matching lines...) Expand all Loading... |
35 | 34 |
36 shouldBe('computedBackgroundColor(spanInShadow)', '"rgba(0, 0, 0, 0)"'); | 35 shouldBe('computedBackgroundColor(spanInShadow)', '"rgba(0, 0, 0, 0)"'); |
37 shouldBe('computedBackgroundColor(spanInHostChildren)', '"rgba(0, 0, 0, 0)"'); | 36 shouldBe('computedBackgroundColor(spanInHostChildren)', '"rgba(0, 0, 0, 0)"'); |
38 shouldBe('computedBackgroundColor(spanOutsideOfShadow)', '"rgba(0, 0, 0, 0)"'); | 37 shouldBe('computedBackgroundColor(spanOutsideOfShadow)', '"rgba(0, 0, 0, 0)"'); |
39 | 38 |
40 var successfullyParsed = true; | 39 var successfullyParsed = true; |
41 </script> | 40 </script> |
42 <script src="../../js/resources/js-test-post.js"></script> | 41 <script src="../../js/resources/js-test-post.js"></script> |
43 </body> | 42 </body> |
44 </html> | 43 </html> |
OLD | NEW |