OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <title>Subresource integrity allowed style resources</title> | 4 <title>Subresource integrity allowed style resources</title> |
5 <script src="../../resources/testharness.js"></script> | 5 <script src="../../resources/testharness.js"></script> |
6 | 6 |
7 <link rel="stylesheet" href="style-1-of-3.css" integrity="ni://sha256;Rv
LeYLQyPa/ZQk95Rj0XQpfsoBHW9Vrqb3zwo5DScrI="></link> | 7 <link rel="stylesheet" href="style-1-of-3.css" integrity="ni:///sha256;R
vLeYLQyPa/ZQk95Rj0XQpfsoBHW9Vrqb3zwo5DScrI="></link> |
8 <link rel="stylesheet" href="style-2-of-3.css" integrity="ni://sha384;j1
bGpDxu0bZAb4jBJzciDWuVUuOTXlLvB9WNKDh7Gik9ygF6CctjgYISUwShHmFM"></link> | 8 <link rel="stylesheet" href="style-2-of-3.css" integrity="ni:///sha384;j
1bGpDxu0bZAb4jBJzciDWuVUuOTXlLvB9WNKDh7Gik9ygF6CctjgYISUwShHmFM"></link> |
9 <link rel="stylesheet" href="style-3-of-3.css" integrity="ni://sha512;P3
02RfA5c/H9Ao/miirSIPVBr3uxOdTzm8IzaGwidneeOOwuyTfOhCp8+c1yg+W16rKf1IW/+4TxD0yAKd
kV+Q=="></link> | 9 <link rel="stylesheet" href="style-3-of-3.css" integrity="ni:///sha512;P
302RfA5c/H9Ao/miirSIPVBr3uxOdTzm8IzaGwidneeOOwuyTfOhCp8+c1yg+W16rKf1IW/+4TxD0yAK
dkV+Q=="></link> |
10 </head> | 10 </head> |
11 <body> | 11 <body> |
12 <script> | 12 <script> |
13 if (window.testRunner) | 13 if (window.testRunner) |
14 testRunner.dumpAsText(); | 14 testRunner.dumpAsText(); |
15 </script> | 15 </script> |
16 <p id="p1">Test 1</p> | 16 <p id="p1">Test 1</p> |
17 <p id="p2">Test 2</p> | 17 <p id="p2">Test 2</p> |
18 <p id="p3">Test 3</p> | 18 <p id="p3">Test 3</p> |
19 | 19 |
20 <script> | 20 <script> |
21 var color = window.getComputedStyle(document.querySelector('#p1')).color
; | 21 var color = window.getComputedStyle(document.querySelector('#p1')).color
; |
22 assert_equals(color, "rgb(0, 128, 0)", "The p#1 element's text should be
green."); | 22 assert_equals(color, "rgb(0, 128, 0)", "The p#1 element's text should be
green."); |
23 color = window.getComputedStyle(document.querySelector('#p2')).color; | 23 color = window.getComputedStyle(document.querySelector('#p2')).color; |
24 assert_equals(color, "rgb(0, 128, 0)", "The p#2 element's text should be
green."); | 24 assert_equals(color, "rgb(0, 128, 0)", "The p#2 element's text should be
green."); |
25 color = window.getComputedStyle(document.querySelector('#p3')).color; | 25 color = window.getComputedStyle(document.querySelector('#p3')).color; |
26 assert_equals(color, "rgb(0, 128, 0)", "The p#3 element's text should be
green."); | 26 assert_equals(color, "rgb(0, 128, 0)", "The p#3 element's text should be
green."); |
27 </script> | 27 </script> |
28 </body> | 28 </body> |
29 </html> | 29 </html> |
OLD | NEW |