Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<style>
.x { color: blue; }
</style>
<div class=x>hello</div>
<script>
document.body.offsetWidth;
var x = document.querySelector(".x");
x.className = "";
x.remove();
document.body.offsetWidth;
</script>