Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / http / tests / security / cross-origin-css-in-xml.xml
blob992ac5b0ce820e079180a54314c8b988e3d55930
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?xml-stylesheet type="text/css" href="resources/xorigincss6.html"?>
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <script>
6 if (window.testRunner) {
7   testRunner.waitUntilDone();
8   testRunner.dumpAsText();
11 window.onload = function() {
12   ele = document.getElementById("id1");
13   // For now, simply test that an invalid MIME type (HTML) is rejected due to
14   // strict mode. It doesn't matter if we test same-origin or cross-origin.
15   ele.innerText = "XML CSS Same-origin, HTML, valid: " + window.getComputedStyle(ele, null).getPropertyValue('background-color');
17   if (window.testRunner)
18     testRunner.notifyDone();
20 </script>
21 </head>
22 <body><div id="id1"></div></body>
23 </html>