| OLD | NEW |
| 1 <?xml-stylesheet type="text/css" href="data:text/css,root { color: green; }"?> | 1 <?xml-stylesheet type="text/css" href="data:text/css,root { color: green; }"?> |
| 2 <?xml-stylesheet alternate="yes" type="text/css" href="data:text/css,root { colo
r: red; }"?> | 2 <?xml-stylesheet alternate="yes" type="text/css" href="data:text/css,root { colo
r: red; }"?> |
| 3 <!DOCTYPE html> | 3 <!DOCTYPE html> |
| 4 <root xmlns="http://www.w3.org/1999/xhtml" > | 4 <root xmlns="http://www.w3.org/1999/xhtml" > |
| 5 <head> | 5 <head> |
| 6 <meta charset="utf-8"/> | 6 <meta charset="utf-8"/> |
| 7 <script src="../js/resources/js-test-pre.js"></script> | 7 <script src="../js/resources/js-test-pre.js"></script> |
| 8 <script> | 8 <script> |
| 9 | 9 |
| 10 description("xml alternate stylesheet with no title test"); | 10 description("xml alternate stylesheet with no title test"); |
| 11 | 11 |
| 12 window.onload = function() { | 12 window.onload = function() { |
| 13 | 13 |
| 14 if (window.testRunner) | 14 if (window.testRunner) |
| 15 testRunner.dumpAsText(); | 15 testRunner.dumpAsText(); |
| 16 | 16 |
| 17 if (document.styleSheets.length > 1) | 17 if (document.styleSheets.length > 1) |
| 18 document.styleSheets[1].disabled = false; | 18 document.styleSheets[1].disabled = false; |
| 19 | 19 |
| 20 element = document.getElementById("sampleText") ; | 20 element = document.getElementById("sampleText") ; |
| 21 shouldBe("getComputedStyle(element).getPropertyValue('color')",
"'rgb(0, 128, 0)'"); | 21 shouldBe("getComputedStyle(element).getPropertyValue('color')",
"'rgb(0, 128, 0)'"); |
| 22 } | 22 } |
| 23 | 23 |
| 24 </script> | 24 </script> |
| 25 </head> | 25 </head> |
| 26 | 26 |
| 27 <body> | 27 <body> |
| 28 <div id="sampleText">This text should be green</div> | 28 <div id="sampleText">This text should be green</div> |
| 29 | 29 |
| 30 <script src="../js/resources/js-test-post.js"></script> | |
| 31 </body> | 30 </body> |
| 32 </root> | 31 </root> |
| OLD | NEW |