Source code
Revision control
Copy as Markdown
Other Tools
<html>
<head>
<title>CSP Inline Violations Test</title>
</head>
<body>
This Background should be neither Red nor Blue c:
</body>
<script>
"use strict";
window.violate = () =>{
const style = document.createElement("style");
style.innerHTML = "body { background-color: red; }";
document.head.appendChild(style);
};
</script>
<style>
background-color:blue;
</style>
</html>