OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <link rel="stylesheet" | 3 <link rel="stylesheet" |
4 href="resources/redir.php?url=http://localhost:8000/security/resources/xor
igincss1.html"></link> | 4 href="resources/redir.php?url=http://localhost:8000/security/resources/xor
igincss1.html"></link> |
5 <link rel="stylesheet" | 5 <link rel="stylesheet" |
6 type="text/css" | 6 type="text/css" |
7 href="resources/redir.php?url=http://localhost:8000/security/resources/xor
igincss2.html"></link> | 7 href="resources/redir.php?url=http://localhost:8000/security/resources/xor
igincss2.html"></link> |
8 <link rel="stylesheet" | 8 <link rel="stylesheet" |
9 href="resources/redir.php?url=http://localhost:8000/security/resources/xor
igincss1.css"></link> | 9 href="resources/redir.php?url=http://localhost:8000/security/resources/xor
igincss1.css"></link> |
10 <link rel="stylesheet" | 10 <link rel="stylesheet" |
(...skipping 12 matching lines...) Expand all Loading... |
23 ele = document.getElementById("id3"); | 23 ele = document.getElementById("id3"); |
24 ele.innerText = "LINK Cross-origin, CSS, invalid: " + window.getComputedStyle(
ele, null).getPropertyValue('background-color'); | 24 ele.innerText = "LINK Cross-origin, CSS, invalid: " + window.getComputedStyle(
ele, null).getPropertyValue('background-color'); |
25 ele = document.getElementById("id4"); | 25 ele = document.getElementById("id4"); |
26 ele.innerText = "LINK Same-origin, HTML, invalid: " + window.getComputedStyle(
ele, null).getPropertyValue('background-color'); | 26 ele.innerText = "LINK Same-origin, HTML, invalid: " + window.getComputedStyle(
ele, null).getPropertyValue('background-color'); |
27 ele = document.getElementById("id5"); | 27 ele = document.getElementById("id5"); |
28 ele.innerText = "IMPORT Cross-origin, HTML, valid: " + window.getComputedStyle
(ele, null).getPropertyValue('background-color'); | 28 ele.innerText = "IMPORT Cross-origin, HTML, valid: " + window.getComputedStyle
(ele, null).getPropertyValue('background-color'); |
29 ele = document.getElementById("id6"); | 29 ele = document.getElementById("id6"); |
30 ele.innerText = "IMPORT Cross-origin, CSS, invalid: " + window.getComputedStyl
e(ele, null).getPropertyValue('background-color'); | 30 ele.innerText = "IMPORT Cross-origin, CSS, invalid: " + window.getComputedStyl
e(ele, null).getPropertyValue('background-color'); |
31 ele = document.getElementById("id7"); | 31 ele = document.getElementById("id7"); |
32 ele.innerText = "IMPORT Same-origin, HTML, invalid: " + window.getComputedStyl
e(ele, null).getPropertyValue('background-color'); | 32 ele.innerText = "IMPORT Same-origin, HTML, invalid: " + window.getComputedStyl
e(ele, null).getPropertyValue('background-color'); |
| 33 ele = document.getElementById("id8"); |
| 34 ele.innerText = "IMPORT Cross-origin, HTML, valid (@charset): " + window.getCo
mputedStyle(ele, null).getPropertyValue('background-color'); |
33 | 35 |
34 if (window.testRunner) | 36 if (window.testRunner) |
35 testRunner.notifyDone(); | 37 testRunner.notifyDone(); |
36 } | 38 } |
37 </script> | 39 </script> |
38 <style> | 40 <style> |
39 /* Deliberately reuse the same file / class / id on this first one */ | 41 /* Deliberately reuse the same file / class / id on this first one */ |
40 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss2.html"; | 42 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss2.html"; |
41 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss4.html"; | 43 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss4.html"; |
| 44 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss7.html"; |
42 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss2.css"; | 45 @import "resources/redir.php?url=http://localhost:8000/security/resources/xorigi
ncss2.css"; |
43 @import "resources/xorigincss5.html"; | 46 @import "resources/xorigincss5.html"; |
44 | 47 |
45 /* Check that data: is still allowed for non-CORS cross-origin image fetches. */ | 48 /* Check that data: is still allowed for non-CORS cross-origin image fetches. */ |
46 #data-background-url { | 49 #data-background-url { |
47 content: "PASS (image loaded)"; | 50 content: "PASS (image loaded)"; |
48 background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/
svg' width='0px' height='0px'></svg>"); | 51 background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/
svg' width='0px' height='0px'></svg>"); |
49 } | 52 } |
50 </style> | 53 </style> |
51 </head> | 54 </head> |
52 <body><div id="id1" class="id1"></div><div id="id2" class="id2"></div><div id="i
d3" class="id3"></div><div id="id4" class="id4"></div><div id="id5" class="id5">
</div><div id="id6" class="id6"></div><div id="id7" class="id7"></div><div id="d
ata-background-url">PASS background image loaded</div></body> | 55 <body><div id="id1" class="id1"></div><div id="id2" class="id2"></div><div id="i
d3" class="id3"></div><div id="id4" class="id4"></div><div id="id5" class="id5">
</div><div id="id6" class="id6"></div><div id="id7" class="id7"></div><div id="i
d8" class="id8"></div><div id="data-background-url">PASS background image loaded
</div></body> |
53 </html> | 56 </html> |
OLD | NEW |