Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE HTML>
<html>
<head>
<meta charset="UTF-8">
<!-- Any copyright is dedicated to the Public Domain.
</head>
<body>
<div></div>
<script>
"use strict";
function run() {
const div = document.querySelector("div");
// We limit the number of allowed CSP reports to 10.
for (let i = 0; i < 15; i++) {
div.setAttribute("style", `background-color: rgb(0, 0, ${i});`);
}
}
run();
</script>
</body>
</html>