| <?xml version="1.0" encoding="UTF-8"?> |
| <?xml-stylesheet type="text/css" href="resources/xorigincss6.html"?> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head> |
| <script> |
| if (window.testRunner) { |
| testRunner.waitUntilDone(); |
| testRunner.dumpAsText(); |
| } |
| |
| window.onload = function() { |
| ele = document.getElementById("id1"); |
| // For now, simply test that an invalid MIME type (HTML) is rejected due to |
| // strict mode. It doesn't matter if we test same-origin or cross-origin. |
| ele.innerText = "XML CSS Same-origin, HTML, valid: " + window.getComputedStyle(ele, null).getPropertyValue('background-color'); |
| |
| if (window.testRunner) |
| testRunner.notifyDone(); |
| } |
| </script> |
| </head> |
| <body><div id="id1"></div></body> |
| </html> |