| 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="../../../resources/js-test.js"></script> |
| 10 <script> | 10 <script> |
| 11 function dumpComputedStyle(node) | 11 function dumpComputedStyle(node) |
| 12 { | 12 { |
| 13 debug(node.id + ": " + document.defaultView.getComputedStyle(node, null).get
PropertyValue('color')); | 13 debug(node.id + ": " + document.defaultView.getComputedStyle(node, null).get
PropertyValue('color')); |
| 14 } | 14 } |
| 15 | 15 |
| 16 function preprocessForTest() | 16 function preprocessForTest() |
| 17 { | 17 { |
| 18 var parent = document.getElementById("parent"); | 18 var parent = document.getElementById("parent"); |
| 19 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... |
| 180 testHostVsScopedStyle(); | 180 testHostVsScopedStyle(); |
| 181 testHostVsInlineStyle(); | 181 testHostVsInlineStyle(); |
| 182 } | 182 } |
| 183 </script> | 183 </script> |
| 184 </head> | 184 </head> |
| 185 <body onload="runTests()"> | 185 <body onload="runTests()"> |
| 186 <div id="parent"> | 186 <div id="parent"> |
| 187 </div> | 187 </div> |
| 188 </body> | 188 </body> |
| 189 </html> | 189 </html> |
| OLD | NEW |