Truly independent web browser
<!DOCTYPE html>
<script src="../../include.js"></script>
<style>
.guard .rare { color: green }
</style>
<div id="root"></div>
<script>
test(() => {
const root = document.getElementById("root");
for (let index = 0; index < 1100; ++index)
root.appendChild(document.createElement("div"));
root.lastElementChild.className = "rare";
internals.updateStyle();
root.classList.add("guard");
internals.updateStyle();
println(`rare subject updated: ${getComputedStyle(root.lastElementChild).color}`);
});
</script>