OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <style> | 4 <style> |
5 #host { | 5 #host { |
6 color: gray; | 6 color: gray; |
7 } | 7 } |
8 </style> | 8 </style> |
9 <script src="../../js/resources/js-test-pre.js"></script> | 9 <script src="../../js/resources/js-test-pre.js"></script> |
10 <script src="resources/polyfill.js"></script> | |
11 <script> | 10 <script> |
12 function dumpComputedStyle(node) | 11 function dumpComputedStyle(node) |
13 { | 12 { |
14 debug(node.id + ": " + document.defaultView.getComputedStyle(node, null).get
PropertyValue('color')); | 13 debug(node.id + ": " + document.defaultView.getComputedStyle(node, null).get
PropertyValue('color')); |
15 } | 14 } |
16 | 15 |
17 function preprocessForTest() | 16 function preprocessForTest() |
18 { | 17 { |
19 var parent = document.getElementById("parent"); | 18 var parent = document.getElementById("parent"); |
20 parent.innerHTML = '<div id="host"><span>Hello</span></div>'; | 19 parent.innerHTML = '<div id="host"><span>Hello</span></div>'; |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 testHostVsScopedStyle(); | 180 testHostVsScopedStyle(); |
182 testHostVsInlineStyle(); | 181 testHostVsInlineStyle(); |
183 } | 182 } |
184 </script> | 183 </script> |
185 </head> | 184 </head> |
186 <body onload="runTests()"> | 185 <body onload="runTests()"> |
187 <div id="parent"> | 186 <div id="parent"> |
188 </div> | 187 </div> |
189 </body> | 188 </body> |
190 </html> | 189 </html> |
OLD | NEW |