test-csp-violation-inline.html (502B)
1 <html> 2 <head> 3 <title>CSP Inline Violations Test</title> 4 5 </head> 6 <body> 7 This Background should be neither Red nor Blue c: 8 </body> 9 <script> 10 "use strict"; 11 window.violate = () =>{ 12 const style = document.createElement("style"); 13 style.innerHTML = "body { background-color: red; }"; 14 document.head.appendChild(style); 15 }; 16 </script> 17 18 <style> 19 background-color:blue; 20 </style> 21 </html>