OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <title>Subresource integrity blocked style resources</title> |
| 5 <script src="../../resources/testharness.js"></script> |
| 6 |
| 7 <link rel="stylesheet" href="style-1-of-3.css" integrity="ni://sha256;Bp
fBw7ivV8q2jLiT13fxDYAe2tJllusRSZ273h2nFSE="></link> |
| 8 <link rel="stylesheet" href="style-2-of-3.css" integrity="ni://sha384;XV
VXBGoYw6AJOh9J/Z8pBDMVVPfkBpngexkA7JqZu8d5GENND6TEIup/tA1v5GPr"></link> |
| 9 <link rel="stylesheet" href="style-3-of-3.css" integrity="ni://sha512;tb
UPioKbVBplr0b1ucnWB57SJWt4x9dOE0Vy2mzCXvH3FepqDZ+07yMK81ytlg0MPaIrPAjcHqba5csorD
WtKg=="></link> |
| 10 </head> |
| 11 <body> |
| 12 <script> |
| 13 if (window.testRunner) |
| 14 testRunner.dumpAsText(); |
| 15 </script> |
| 16 <p id="p1">Test 1</p> |
| 17 <p id="p2">Test 2</p> |
| 18 <p id="p3">Test 3</p> |
| 19 |
| 20 <script> |
| 21 var color = window.getComputedStyle(document.querySelector('#p1')).color
; |
| 22 assert_not_equals(color, "rgb(0, 128, 0)", "The p#1 element's text shoul
d not be green."); |
| 23 color = window.getComputedStyle(document.querySelector('#p2')).color; |
| 24 assert_not_equals(color, "rgb(0, 128, 0)", "The p#2 element's text shoul
d not be green."); |
| 25 color = window.getComputedStyle(document.querySelector('#p3')).color; |
| 26 assert_not_equals(color, "rgb(0, 128, 0)", "The p#3 element's text shoul
d not be green."); |
| 27 </script> |
| 28 </body> |
| 29 </html> |
OLD | NEW |